OwlCyberSecurity - MANAGER
Edit File: util.cpython-39.opt-2.pyc
a ����?�g�����������������������@���s^���d�dl�Z�g�d�ZG�dd��d�Zdd��Zdd��Zdd d�Zdd ��Zdd��Zh�d�jZ dd��Z dS�)�����N)�FileWrapper�guess_scheme�application_uri�request_uri�shift_path_info�setup_testing_defaultsc�������������������@���s.���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd S�)r����� ��c�����������������C���s"���||�_�||�_t|d�r|j|�_d�S�)N�close)�filelike�blksize�hasattrr ���)�selfr ���r�����r����1/opt/alt/python39/lib64/python3.9/wsgiref/util.py�__init__���s���� zFileWrapper.__init__c�����������������C���s6���dd�l�}|jdtdd��|�j�|�j�}|r.|S�t�d�S�)Nr���zXFileWrapper's __getitem__ method ignores 'key' parameter. Use iterator protocol instead.����)� stacklevel)�warnings�warn�DeprecationWarningr ����readr���� IndexError)r ����keyr����datar���r���r����__getitem__���s�����zFileWrapper.__getitem__c�����������������C���s���|�S��Nr���)r ���r���r���r����__iter__!���s����zFileWrapper.__iter__c�����������������C���s���|�j��|�j�}|r|S�t�d�S�r���)r ���r���r���� StopIteration)r ���r���r���r���r����__next__$���s����zFileWrapper.__next__N)r���)�__name__� __module__�__qualname__r���r���r���r���r���r���r���r���r������s��� r���c�����������������C���s���|���d�dv�rdS�dS�d�S�)NZHTTPS)ZyesZon�1�https�http)�get)�environr���r���r���r���*���s����r���c�����������������C���s����|�d�d�}ddl�m}�|��d�r0||�d�7�}nR||�d�7�}|�d�dkrf|�d�d kr�|d |�d��7�}n|�d�dkr�|d |�d��7�}|||��d�p�d dd�7�}|S�)N�wsgi.url_schemez://r�����quote� HTTP_HOST�SERVER_NAMEr#����SERVER_PORT�443�:�80�SCRIPT_NAME�/�latin1)�encoding)�urllib.parser)���r%���)r&����urlr)���r���r���r���r���2���s���� r���Tc�����������������C���sp���t�|��}ddlm}�||��dd�ddd�}|��d�sF||d d���7�}n||7�}|rl|��d �rl|d|�d ��7�}|S�)Nr���r(���� PATH_INFO��z/;=,r2���)Zsafer3���r0�������ZQUERY_STRING�?)r���r4���r)���r%���)r&���Z include_queryr5���r)���� path_infor���r���r���r���F���s���� r���c�����������������C���s����|���dd�}|sd�S�|�d�}dd��|dd��D��|dd�<�|d�}|d=�|���dd�}t�|d�|��}|�d�r~|d�d��}|s�|�d�s�|d7�}||�d<�d�|�|�d<�|d kr�d�}|S�) Nr6���r7���r1���c�����������������S���s���g�|�]}|r|d�kr|�qS�)�.r���)�.0�pr���r���r���� <listcomp>e��������z#shift_path_info.<locals>.<listcomp>r8������r0���r;���)r%����split� posixpath�normpath�endswith�join)r&���r:���� path_parts�nameZscript_namer���r���r���r���S���s$���� r���c�����������������C���s����|���dd��|���dd��|���d|�d���|���dd��d|�vr\d |�vr\|���dd ��|���d d��|���dd ��|���dd��|���dd��|���dd��ddlm}m}�|���d|����|���d|����|���dt|����|�d�dkr�|���dd��n|�d�dkr�|���dd��d�S�)Nr+���z 127.0.0.1ZSERVER_PROTOCOLzHTTP/1.0r*���ZREQUEST_METHODZGETr0���r6���r7���r1���zwsgi.version)r8���r���z wsgi.run_oncer���zwsgi.multithreadzwsgi.multiprocess)�StringIO�BytesIOz wsgi.inputzwsgi.errorsr'���r$���r,���r/���r#���r-���)� setdefault�iorH���rI���r���)r&���rH���rI���r���r���r���r���|���s&���� r���>���Z connectionZupgradeZtrailerszproxy-authenticatezproxy-authorizationz keep-aliveZteztransfer-encodingc�����������������C���s���t�|�����S�r���)�_hoppish�lower)Zheader_namer���r���r���� is_hop_by_hop����s����rN���)T)rB����__all__r���r���r���r���r���r����__contains__rL���rN���r���r���r���r����<module>���s��� )(