ok

Mini Shell

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

�
Bi�fc@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.23/test/stub/wsgi/passenger_wsgi.pyt
file_exists


iicCs
|j�S(N(tdecode(tb((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/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.23/test/stub/wsgi/passenger_wsgi.pytstr_to_bytesscCs
|j�S(N(titems(td((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/test/stub/wsgi/passenger_wsgi.pyt	iteritemsscCs|S(N((R((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/test/stub/wsgi/passenger_wsgi.pyR	scCs|S(N((R
((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/test/stub/wsgi/passenger_wsgi.pyRscCs
|j�S(N(R(R((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/test/stub/wsgi/passenger_wsgi.pyRscs�d}d}�jd�}|dkrQtjd�||d[g�td�gS�jd	�}|dk	r�x t|�s�tjd
�qoWn�d}|dkr�td
�r�td
d��}|j�}WdQXq�d}n�|dkrE�d}tj	�d��}|dd}	|dd}
t
d||	|
f�}n\|dkrz�fd�}||d\d]g�|�S|dkr�t
ttj���}n|j
d�r�d}x�t��D]0}|t
|ddt|d�d�7}q�Wn�|dkrFtj	�d��}|dd}t|d �j�d!}n[|d"krl||d^d_g�d!gS|d%kr�d&}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�}�dkrLtj��qLqLWWd|j�Xd!}n�|d4kr��d5}d!}n�|d6kr)t�jd1d7����fd8�}||d`dag�|�S|d9kr�t�jd1d:���t�jd;d<�����fd=�}||dbdcg�|�S|d>kr�t�jd1d?���tj��d@}d!}n�|dAkrOt�jdBde���dfg}�jdF�dk	r)|jdG�f�n��fdH�}|||�|�S|dIkr�||dgdhg�ttj��gS|dLkr��dMdNks��dOj�dPkr�dQ}dR}||didGt|�fg�|gS�dSt�}|j�}|j�zy|jdTdUdVdW�|j�|j�}xCt|�dkr�|jt
dX|��|j�|j�}q@WWd|j�XndY}dZ}||djdGt|�fg�|gS(kNs200 OKttREQUEST_METHODtOOBWisContent-Types	text/htmlsoobw oktHTTP_X_WAIT_FOR_FILEg{�G�z�?t	PATH_INFOt/sfront_page.txttrbs
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_FILEtwb(tstrtfloattgetttimetsleeptNoneRRtopentwriteRtclose(t
sleep_timetstatusRtf(tenv(sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/test/stub/wsgi/passenger_wsgi.pytbodyfn=s"

sTransfer-Encodingtchunkeds/pids/envs = s
s/touch_filetfiletwtoks
/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_OUTPUTRs/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#(tiR6(R((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/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<R6(tcountR((sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/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;R R!R"R#R$RRRR%R&RR'(twrittenR6R(R)RR*(R+tsize(sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/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-FooR1(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#RR$RR%treadtcgitparseRRtgetpidt
startswithRR'tFieldStoragetvalueR treadlineR;R&tflushtinttappendtlowerRtmakefile(R+tstart_responseR)tbodytmethodRtpathR*tparamsRRR,tpairR4R5R6tlinetheaderstsockettio((R>R+RER(sS/opt/cpanel/ea-ruby27/src/passenger-release-6.0.23/test/stub/wsgi/passenger_wsgi.pytapplication s�


	
1		

	
		
		
&

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

Zerion Mini Shell 1.0