ok

Mini Shell

Direktori : /opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/
Upload File :
Current File : //opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pyc

�
�W�dc@s�ddlZddlZddlZddlZd�Zejddkrjd�Zd�Zd�Znd�Zd	�Zd
�Zd�Z	dS(i����NcCs.ytj|�tSWntk
r)tSXdS(N(toststattTruetOSErrortFalse(tfilename((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pyt
file_exists


iicCs
|j�S(N(tdecode(tb((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pytbytes_to_strscCs$t|t�r|S|jd�SdS(Nslatin-1(t
isinstancetbytestencode(ts((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pytstr_to_bytesscCs
|j�S(N(titems(td((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pyt	iteritemsscCs|S(N((R((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pyR	scCs|S(N((R
((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pyRscCs
|j�S(N(R(R((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pyRscs�d}d}�jd�}|dkrQtjd�||d[g�td�gS�jd�}|dk	r�x t|�s�tjd	�qoWn�d
}|dkr�td�r�tdd
��}|j�}WdQXq�d}n�|dkr?�d}tj	�d��}|dd}	|dd}
d||	|
f}nV|dkrt�fd�}||d\d]g�|�S|dkr�tt
j��}n|jd�r�d}x�t
��D]*}||ddt|d�d7}q�Wn�|dkr4tj	�d��}|dd}t|d �j�d!}na|d"krZ||d^d_g�d!gS|d%krod&}n&|d'kr�tjd(�dd)��}t|d*j�}t|d+j�}
t|d,j�}d-|d.|
d/|}n�|d0kr�t�jd1d���t�d2d3�}zp�dj�}xYt|�dkr�|j|�|j��dj�}�dkr:tj��q:q:WWd|j�Xd!}n�|d4kr��d5}d!}n�|d6krt�jd1d7����fd8�}||d`dag�|�S|d9krt�jd1d:���t�jd;d<�����fd=�}||dbdcg�|�S|d>kr�t�jd1d?���tj��d@}d!}n�|dAkr=t�jdBde���dfg}�jdF�dk	r|jdG�f�n��fdH�}|||�|�S|dIkro||dgdhg�tt
j��gS|dLkr��dMdNks��dOj�dPkr�dQ}tdR�}||didGt|�fg�|gS�dSt�}|j�}|j�zy|jdTdUdVdW�|j�|j�}xCt|�dkrv|jtdX|��|j�|j�}q4WWd|j�XndY}dZ}||djdGt|�fg�|gS(kNs200 OKtREQUEST_METHODtOOBWisContent-Types	text/htmlsoobw oktHTTP_X_WAIT_FOR_FILEg{�G�z�?t	PATH_INFOt/sfront_page.txttrs
front pages/parameterss
wsgi.inputtfirstitseconds Method: %s
First: %s
Second: %s
s/chunkedc3s�td�Vtd�Vtd�Vtd�Vt�jdd��}tj|��jd�dk	r�t}ztd�Vt}Wd�jd	�}|dk	r�t|d
�}z|j	t
t|���Wd|j�XnXndS(Ns7
chunk1

s7
chunk2

s7
chunk3

s0

tHTTP_X_SLEEP_WHEN_DONEitHTTP_X_EXTRA_DATAs7
chunk4

tHTTP_X_TAIL_STATUS_FILEtw(tstrtfloattgetttimetsleeptNoneRRtopentwriteRtclose(t
sleep_timetstatusRtf(tenv(sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pytbody=s"

sTransfer-Encodingtchunkeds/pids/envts = s
s/touch_filetfileRtoks
/extra_headersX-FootBars/cacheds'This is the uncached version of /cacheds/upload_with_paramstfptenvirontname1tname2tdatas	name 1 = s

name 2 = s
data = s/raw_upload_to_filetHTTP_X_SLEEPt
HTTP_X_OUTPUTtwbs/custom_statustHTTP_X_CUSTOM_STATUSs/streamg�������?c3s_d}xRtrZddt|�d}dt|�V|VdVtj��|d7}q	WdS(Nit i s
s%x
s
i(RRtlenR!R"(tiR5(R'(sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pyR+s	
s/chunked_streamg�������?tHTTP_X_COUNTic3ssd}xT|�kr\dt|�d}dt|�V|VdVtj��|d7}q	WdVtjd�dS(	Nis	Counter: s
s%x
s
is0

i(RR;R!R"(R<R5(tcountR'(sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pyR+�s
s/sleepii�s/blobtHTTP_X_SIZEii
s
text/plaintHTTP_X_CONTENT_LENGTHsContent-Lengthc3s�d}x<|�krDdtd
�|�}|V|t|�7}q	Wt�jdd��}tj|��jd�dk	r�t}ztd�Vt	}Wd�jd�}|dk	r�t
|d	�}z|jtt|���Wd|j
�XnXndS(NitxiiRRttailRRi (tminR;RR R!R"R#RRRR$R%RR&(twrittenR5R'R(RR)(R*tsize(sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pyR+�s$

s/oobwsX-Passenger-Request-OOB-Workttrues/switch_protocoltHTTP_UPGRADEtrawtHTTP_CONNECTIONtupgrades500 Internal Server ErrorsInvalid headersspassenger.hijacks"HTTP/1.1 101 Switching Protocols
sUpgrade: raw
sConnection: Upgrade
s
sEcho: s
404 Not FoundsUnknown URI(sContent-Types	text/html(sContent-Types	text/html(sTransfer-EncodingR,(sContent-Types	text/html(sX-FooR0(sContent-Types	text/html(sTransfer-EncodingR,(sContent-Types	text/html(sTransfer-EncodingR,ii�(sContent-Types
text/plain(sContent-Types
text/plain(sX-Passenger-Request-OOB-WorkRF(sContent-Types
text/plain(sContent-Types
text/plain(R#R R!R"RRR$treadtcgitparseRtgetpidt
startswithRR&tFieldStorageRtvalueRtreadlineR;R%tflushtinttappendtlowerRtmakefile(R*tstart_responseR(R+tmethodRtpathR)tparamsRRtpairR3R4R5tlinetheaderstsockettio((R>R*RER'sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pytapplication s�


	
+		

	
		
		
&


(
RtsysR!RLRtversion_infoR	RRRa(((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.18/test/stub/wsgi/passenger_wsgi.pyt<module>s0						

Zerion Mini Shell 1.0