ProPeler
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cpanel-ccs
/
txweb2
/
filter
/
Filename :
location.pyc
back
Copy
� �t�ac @ s2 d d l m Z d d l Z d g Z d � Z d S( i����( t responsecodeNt addLocationc s � f d � } | j | � d S( s� Add a C{location} header to the response if the response status is CREATED. @param request: L{IRequest} the request being processed @param location: the URI to use in the C{location} header c st | j t j k rp t j � � \ } } } } } } | d k rT | j d � � } n � } | j j d | � n | S( Nt t patht location( t codeR t CREATEDt urlparset unparseURLt headerst setHeader( t requestt responset schemet _ignore_hostt _ignore_patht _ignore_paramst _ignore_querystringt _ignore_fragmentt uri( R ( s) /opt/cpanel-ccs/txweb2/filter/location.pyt locationFilter s !N( t addResponseFilter( R R R ( ( R s) /opt/cpanel-ccs/txweb2/filter/location.pyR s ( t txweb2R R t __all__R ( ( ( s) /opt/cpanel-ccs/txweb2/filter/location.pyt <module> s