§ v<ˆj“ãóJ—dZddlmZddlmZmZd„Zd„Zd„Z d d„Z d „Z d S) zà This module implements WSGI related helpers adapted from ``werkzeug.wsgi`` :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. é)Úabsolute_import)Ú iteritemsÚ urllib_quotec#óNK—t|¦«D]’\}}t|¦«}| d¦«r9|dvr5|dd… dd¦« ¦«|fV—Œb|dvr,| dd¦« ¦«|fV—Œ“dS)z+ Returns only proper HTTP headers. ÚHTTP_)ÚHTTP_CONTENT_TYPEÚHTTP_CONTENT_LENGTHéNÚ_ú-)Ú CONTENT_TYPEÚCONTENT_LENGTH)rÚstrÚ startswithÚreplaceÚtitle)ÚenvironÚkeyÚvalues úb/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/raven/utils/wsgi.pyÚ get_headersr sÉèè€õ  Ñ(Ô(ð7ð7‰ ˆˆUÝ�#‰hŒhˆØ �>Š>˜'Ñ "Ô "ð 7 sØ 7ð(8ð(8à�a�b�b”'—/’/ # sÑ+Ô+×1Ò1Ñ3Ô3°UÐ:Ð :Ð :Ð :Ð :Ø Ð6Ð 6Ð 6Ø—+’+˜c 3Ñ'Ô'×-Ò-Ñ/Ô/°Ð6Ð 6Ð 6Ð 6øð 7ð7óc#ó4K—dD]}||vr |||fV—ŒdS)z8 Returns our whitelisted environment variables. )Ú REMOTE_ADDRÚ SERVER_NAMEÚ SERVER_PORTN©)rrs rÚ get_environrs@èè€ð=ð$ð$ˆØ �'ˆ>ˆ>Ø�w˜s”|Ð#Ð #Ð #Ð #øð$ð$rcóX—| d¦«}d|vr |d}n>> from werkzeug import create_environ >>> env = create_environ("/?param=foo", "http://localhost/script") >>> get_current_url(env) 'http://localhost/script/?param=foo' >>> get_current_url(env, root_only=True) 'http://localhost/script/' >>> get_current_url(env, host_only=True) 'http://localhost/' >>> get_current_url(env, strip_querystring=True) 'http://localhost/script/' :param environ: the WSGI environment to get the current URL from. :param root_only: set `True` if you only want the root URL. :param strip_querystring: set to `True` if you don't want the querystring. :param host_only: set to `True` if the host URL should be returned. r z://Úú/Ú SCRIPT_NAMEÚ PATH_INFOÚ QUERY_STRINGú?)r.ÚappendÚjoinrr*ÚrstripÚlstrip)rÚ root_onlyÚstrip_querystringÚ host_onlyÚtmpÚcatÚqss rÚget_current_urlr@<s€ð* Ð$Ô % u­h°wÑ.?Ô.?Ð @€CØ Œ*€CØð"Ø�wŠw�s‰|Œ|˜cÑ!Ð!Ø€C� �W—[’[ °Ñ3Ô3×:Ò:¸3Ñ?Ô?Ñ@Ô@ÑAÔAÐAØðØ ˆˆC‰Œˆˆà ˆ�L˜˜wŸ{š{¨;¸Ñ;Ô;×BÒBÀ3ÑGÔGÑGÑ HÔ HÑIÔIÐIØ ð Ø—’˜^Ñ,Ô,ˆBØð Ø��C˜"‘H‘ ” � Ø �7Š7�3‰<Œ<Ðrcó— |d d¦«d ¦«S#ttf$r| d¦«cYSwxYw)zÕ Naively yank the first IP address in an X-Forwarded-For header and assume this is correct. Note: Don't use this in security sensitive situations since this value may be forged from a client. ÚHTTP_X_FORWARDED_FORú,rr)ÚsplitÚstripÚKeyErrorÚ IndexErrorr*)rs rÚ get_client_iprHasj€ð*ØÐ-Ô.×4Ò4°SÑ9Ô9¸!Ô<×BÒBÑDÔDÐDøÝ •jÐ !ð*ð*ð*Ø�{Š{˜=Ñ)Ô)Ð)Ð)Ð)ð*øøøs‚25µ&AÁAN)FFF) Ú__doc__Ú __future__rÚraven.utils.compatrrrrr.r@rHrrrúrLs ðððð 'Ð&Ð&Ð&Ð&Ð&à6Ð6Ð6Ð6Ð6Ð6Ð6Ð6ð 7ð 7ð 7ð$ð$ð$ðððð0AFØ#ð"ð"ð"ð"ðJ *ð *ð *ð *ð *r