/
/
usr/
lib64/
lib64/
/
lib64/
lib64/
/ó
ÛœSec @ s» d Z d d l Z d d d d d d g Z d d d „ ƒ YZ d
„ Z d „ Z d d
„ Z d „ Z d „ Z i d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6j Z
d „ Z d S( s$ Miscellaneous WSGI-related UtilitiesiÿÿÿÿNt FileWrappert guess_schemet application_urit request_urit shift_path_infot setup_testing_defaultsc B s5 e Z d Z d d „ Z d „ Z d „ Z d „ Z RS( s1 Wrapper to convert file-like objects to iterablesi c C s4 | | _ | | _ t | d ƒ r0 | j | _ n d S( Nt close( t fileliket blksizet hasattrR ( t selfR R ( ( s$ /usr/lib64/python2.7/wsgiref/util.pyt __init__ s c C s) | j j | j ƒ } | r | St ‚ d S( N( R t readR t
IndexError( R
t keyt data( ( s$ /usr/lib64/python2.7/wsgiref/util.pyt __getitem__ s c C s | S( N( ( R
( ( s$ /usr/lib64/python2.7/wsgiref/util.pyt __iter__ s c C s) | j j | j ƒ } | r | St ‚ d S( N( R R R t
StopIteration( R
R ( ( s$ /usr/lib64/python2.7/wsgiref/util.pyt next s ( t __name__t
__module__t __doc__R R R R ( ( ( s$ /usr/lib64/python2.7/wsgiref/util.pyR s
c C s! | j d ƒ d k r d Sd Sd S( sM Return a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
t HTTPSt yest ont 1t httpst httpN( s yesR R ( t get( t environ( ( s$ /usr/lib64/python2.7/wsgiref/util.pyR # s c C sÌ | d d } d d l m } | j d ƒ r> | | d 7} nk | | d 7} | d d k r„ | d d k r© | d
| d 7} q© n% | d d k r© | d
| d 7} n | | | j d ƒ pÁ d
ƒ 7} | S( s@ Return the application's base URI (no PATH_INFO or QUERY_STRING)s wsgi.url_schemes ://iÿÿÿÿ( t quotet HTTP_HOSTt SERVER_NAMER t SERVER_PORTt 443t :t 80t SCRIPT_NAMEt /( t urllibR R ( R t urlR ( ( s$ /usr/lib64/python2.7/wsgiref/util.pyR + s i c C s’ t | ƒ } d d l m } | | j d d ƒ d d ƒ} | j d ƒ sZ | | d 7} n
| | 7} | rŽ | j d ƒ rŽ | d
| d 7} n | S( sB Return the full request URI, optionally including the query stringiÿÿÿÿ( R t PATH_INFOt t safes /;=,R&