https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/S3/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/S3/__pycache__/Custom_httplib27.cpython-310.pyc
o

�Qa��@sddlmZmZddlZddlZddlmZmZmZmZm	Z	m
Z
mZmZm
Z
mZzddlmZWney?ddlmZYnwddlmZgd�Zdd	�Zd
d�Zdd
�Zddd�ZdZddd�ZGdd�de�Zdd�Zeej_eej_ eej_!eej_"eej_#eej_$dS)�)�absolute_import�print_functionN)
�_CS_REQ_SENT�_CS_REQ_STARTED�CONTINUE�UnknownProtocol�CannotSendHeader�
NO_CONTENT�NOT_MODIFIED�EXPECTATION_FAILED�HTTPMessage�
HTTPException)�StringIO�)�encode_to_s3)�PATCH�POST�PUTcCs�|jdurdS|��\}}}||_|��|_|dkrd|_n|�d�r'd|_n|dkr/d|_nt|��|jdkrId|_d|_	d	|_
tt��|_dSt|j
d�|_|jdkrc|jjD]	}td
|dd�qYd|j_
|j�d
�}|r||��dkr|d	|_	d|_nd|_	|��|_
|j�d�}|r�|j	s�zt|�|_Wnty�d|_Yn
w|jdkr�d|_nd|_|tks�|tks�d|kr�dks�n|jdkr�d|_|j
s�|j	s�|jdur�d	|_
dSdSdSdS)z� Re-implemented httplib begin function
    to not loop over "100 CONTINUE" status replies
    but to report it to higher level so it can be processed.
    NzHTTP/1.0�
zHTTP/1.�zHTTP/0.9�	rrzheader:� )�endztransfer-encoding�chunked�content-length�d���HEAD)�msg�_read_status�status�strip�reason�version�
startswithr�lengthr�
will_closerr�fp�
debuglevel�headers�print�	getheader�lower�
chunk_left�_check_close�int�
ValueErrorr	r
�_method)�selfr#r r"�hdr�tr_encr%�r5�5/usr/lib/python3/dist-packages/S3/Custom_httplib27.py�httpresponse_patched_beginsf







�
�
�

�r7cCs�d}|dur|��tvrd}n9|durHztt|��}Wn,ttfyGztt�|���j	�}Wntt
fyD|jdkrBtd�YnwYnw|durT|�
d|�dSdS)N�0rz
Cannot stat!!zContent-Length)�upper�_METHODS_EXPECTING_BODY�str�len�	TypeError�AttributeError�os�fstat�fileno�st_size�OSErrorr(r*�	putheader)r2�body�method�thelenr5r5r6�)httpconnection_patched_set_content_lengthgs$����	�rHcCs(t�dd�|D��}i}d|vrd|d<d|vrd|d<d}|��D]\}}	d	|��kr4d
|	��vr4d}q"t|�}|j||fi|��d|vrM|�||�|��D]\}}	|�t|�t|	��qQ|si|�|�dS|sot	d
��|��|�
�}
|
��t|_
|
jtkr�t��|
jtkr�|�|�dSdS)NcSsg|]}|���qSr5)r,)�.0�kr5r5r6�
<listcomp>�sz7httpconnection_patched_send_request.<locals>.<listcomp>�hostr�	skip_hostzaccept-encoding�skip_accept_encodingF�expectz100-continueTrz.A body is required when expecting 100-continue)�dict�fromkeys�	iteritemsr,r�
putrequest�_set_content_lengthrD�
endheadersr
�getresponse�readr�_HTTPConnection__stater r�ExpectationFailedr�send)r2rF�urlrEr)�header_names�skips�expect_continuer3�value�respr5r5r6�#httpconnection_patched_send_requests<�

�racCs&|jtkr	t|_nt��|�|�dS)aoIndicate that the last header line has been sent to the server.

    This method sends the request to the server.  The optional
    message_body argument can be used to pass a message body
    associated with the request.  The message body will be sent in
    the same packet as the message headers if it is string, otherwise it is
    sent as a separate packet.
    N)rXrrr�_send_output�r2�message_bodyr5r5r6�!httpconnection_patched_endheaders�s
	rei@cCsr|j�d�d�|j�}|jdd�=t|�}t|t�r't|�tkr'||7}d}|�|�|dur7|�|�dSdS)z�Send the currently buffered request and clear the buffer.

    Appends an extra \r\n to the buffer.
    A message_body may be specified, to be appended to the request.
    )�rfs
N)	�_buffer�extend�joinr�
isinstancer;r<�mssrZ)r2rdrr5r5r6�"httpconnection_patched_send_output�s
�rlc@seZdZdS)rYN)�__name__�
__module__�__qualname__r5r5r5r6rY�srYcCs|�|�dS�N)rZrcr5r5r6�(httpconnection_patched_wrapper_send_body�srqrp)%�
__future__rrr?�httplibrrrrrr	r
rrr
�	cStringIOr�ImportError�	BaseUtilsrr:r7rHrarerkrlrYrq�HTTPResponse�begin�HTTPConnectionrUrbrT�
_send_request�wrapper_send_bodyr5r5r5r6�<module>s20�N
(


https://t.me/RX1948 - 2025