Edit File: util.cpython-37.opt-2.pyc
B ����0��c��������������� ���@���st���d�dl�Z�ddddddgZG�dd��d�Zd d��Zd d��Zddd�Zd d��Zdd��Zddddddddd�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/python37/lib64/python3.7/wsgiref/util.py�__init__���s���� zFileWrapper.__init__c�������������C���s���|�j��|�j�}|r|S�t�d�S�)N)r ����readr���� IndexError)r ����key�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�)N)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��� c�������������C���s���|���d�dkrdS�dS�d�S�)NZHTTPS)ZyesZon�1�https�http)�get)�environr���r���r���r���#���s����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�)Nzwsgi.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���+���s���� 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/;=,r*���)Zsafer+���r(�������ZQUERY_STRING�?)r���r,���r!���r���)r ���Z include_queryr-���r!���� path_infor���r���r���r���?���s���� 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�) Nr.���r/���r)���c�������������S���s���g�|�]}|r|d�kr|�qS�)�.r���)�.0�pr���r���r���� <listcomp>^���s����z#shift_path_info.<locals>.<listcomp>r0������r(���r3���)r����split� posixpath�normpath�endswith�join)r ���r2���� path_parts�nameZscript_namer���r���r���r���L���s$���� c�������������C���s����|���dd��|���dd��|���d|�d���|���dd��d|�kr\d |�kr\|���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_METHODZGETr(���r.���r/���r)���zwsgi.version)r0���r���z wsgi.run_oncer���zwsgi.multithreadzwsgi.multiprocess)�StringIO�BytesIOz wsgi.inputzwsgi.errorszwsgi.url_schemer���r$���r'���r���r%���)� setdefault�ior?���r@���r���)r ���r?���r@���r���r���r���r���u���s&���� r0���)Z connectionz keep-alivezproxy-authenticatezproxy-authorization�teZtrailersztransfer-encodingZupgradec�������������C���s���t�|�����S�)N)�_hoppish�lower)Zheader_namer���r���r���� is_hop_by_hop����s����rF���)T)r9����__all__r���r���r���r���r���r����__contains__rD���rF���r���r���r���r����<module>���s��� ))