Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
3 \ã @sxdZddlZddddddgZGd d„dƒZd d„Zd d„Zdd d„Zdd„Zdd„Zdddddddddœj Z dd„Z dS)z$Miscellaneous WSGI-related UtilitieséNÚ FileWrapperÚ guess_schemeÚapplication_uriÚ request_uriÚshift_path_infoÚsetup_testing_defaultsc@s2eZdZdZd dd„Zdd„Zdd„Zd d „Zd S) rz1Wrapper to convert file-like objects to iterablesé cCs"||_||_t|dƒr|j|_dS)NÚclose)ÚfilelikeÚblksizeÚhasattrr )Úselfr r ©rú/usr/lib64/python3.6/util.pyÚ__init__s zFileWrapper.__init__cCs|jj|jƒ}|r|St‚dS)N)r Úreadr Ú IndexError)r ÚkeyÚdatarrrÚ __getitem__szFileWrapper.__getitem__cCs|S)Nr)r rrrÚ__iter__szFileWrapper.__iter__cCs|jj|jƒ}|r|St‚dS)N)r rr Ú StopIteration)r rrrrÚ__next__szFileWrapper.__next__N)r)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrrrrr s  cCs|jdƒdkrdSdSdS) zMReturn a guess for whether 'wsgi.url_scheme' should be 'http' or 'https' ZHTTPSÚyesÚonÚ1ÚhttpsÚhttpN)rrr)Úget)Úenvironrrrr#scCs |dd}ddlm}|jdƒr0||d7}nR||d7}|ddkrf|dd kr‚|d |d7}n|dd kr‚|d |d7}|||jd ƒp’d dd�7}|S)z@Return the application's base URI (no PATH_INFO or QUERY_STRING)zwsgi.url_schemez://r)ÚquoteÚ HTTP_HOSTÚ SERVER_NAMEr Ú SERVER_PORTÚ443ú:Ú80Ú SCRIPT_NAMEú/Úlatin1)Úencoding)Ú urllib.parser$r")r#Úurlr$rrrr+s       TcCspt|ƒ}ddlm}||jddƒddd�}|jdƒsF||d d …7}n||7}|rl|jd ƒrl|d |d 7}|S) zBReturn the full request URI, optionally including the query stringr)r$Ú PATH_INFOÚz/;=,r-)Zsafer.r+éNZ QUERY_STRINGú?)rr/r$r")r#Z include_queryr0r$Ú path_inforrrr?s  cCs¾|jddƒ}|sdS|jdƒ}dd„|dd …Dƒ|dd …<|d}|d=|jddƒ}tj|d|ƒ}|jdƒr~|dd …}| r˜|jdƒ r˜|d7}||d<dj|ƒ|d<|d krºd}|S) aZShift a name from PATH_INFO to SCRIPT_NAME, returning it If there are no remaining path segments in PATH_INFO, return None. Note: 'environ' is modified in-place; use a copy if you need to keep the original PATH_INFO or SCRIPT_NAME. Note: when PATH_INFO is just a '/', this returns '' and appends a trailing '/' to SCRIPT_NAME, even though empty path segments are normally ignored, and SCRIPT_NAME doesn't normally end in a '/'. This is intentional behavior, to ensure that an application can tell the difference between '/x' and '/x/' when traversing to objects. r1r2Nr,cSsg|]}|r|dkr|‘qS)Ú.r)Ú.0Úprrrú ^sz#shift_path_info..r3r+r6éÿÿÿÿr:r:)r"ÚsplitÚ posixpathÚnormpathÚendswithÚjoin)r#r5Ú path_partsÚnameZ script_namerrrrLs$     cCsþ|jddƒ|jddƒ|jd|dƒ|jddƒd|kr\d |kr\|jdd ƒ|jd d ƒ|jd dƒ|jddƒ|jddƒ|jddƒddlm}m}|jd|ƒƒ|jd|ƒƒ|jdt|ƒƒ|ddkrâ|jddƒn|ddkrú|jddƒdS)a:Update 'environ' with trivial defaults for testing purposes This adds various parameters required for WSGI, including HTTP_HOST, SERVER_NAME, SERVER_PORT, REQUEST_METHOD, SCRIPT_NAME, PATH_INFO, and all of the wsgi.* variables. It only supplies default values, and does not replace any existing settings for these variables. This routine is intended to make it easier for unit tests of WSGI servers and applications to set up dummy environments. It should *not* be used by actual WSGI servers or applications, since the data is fake! r&z 127.0.0.1ZSERVER_PROTOCOLzHTTP/1.0r%ZREQUEST_METHODZGETr+r1r2r,z wsgi.versionr3rz wsgi.run_oncezwsgi.multithreadzwsgi.multiprocess)ÚStringIOÚBytesIOz wsgi.inputz wsgi.errorszwsgi.url_schemer!r'r*r r(N)r3r)Ú setdefaultÚiorBrCr)r#rBrCrrrrus&           r3)Z connectionz keep-alivezproxy-authenticatezproxy-authorizationZteZtrailersztransfer-encodingZupgradecCs t|jƒƒS)z?Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header)Ú_hoppishÚlower)Z header_namerrrÚ is_hop_by_hop£srH)T) rr<Ú__all__rrrrrrÚ __contains__rFrHrrrrÚs ))