|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/django/http/ |
Upload File : |
�
r�\c @ s d Z d � Z d � Z d S( s@
Functions that modify an HTTP request or response in some way.
c C s6 d | k r2 | j � r2 | j | d � | d <n | S( s
Ensures that we always use an absolute URI in any location header in the
response. This is required by RFC 2616, section 14.30.
Code constructing response objects is free to insert relative paths, as
this function converts them to absolute paths.
t Location( t get_hostt build_absolute_uri( t requestt response( ( s3 /tmp/pip-install-XxeQeY/django/django/http/utils.pyt fix_location_header s c C s� d | j k o d k n s. | j d k rY | j rC g | _ n d | _ d | d <n | j d k r� | j r} g | _ q� d | _ n | S(
s�
Removes the content of responses for HEAD requests, 1xx, 204 and 304
responses. Ensures compliance with RFC 2616, section 4.3.
id i� i� i0 t t 0s Content-Lengtht HEAD( i� i0 ( t status_codet streamingt streaming_contentt contentt method( R R ( ( s3 /tmp/pip-install-XxeQeY/django/django/http/utils.pyt conditional_content_removal s .
N( t __doc__R R ( ( ( s3 /tmp/pip-install-XxeQeY/django/django/http/utils.pyt <module> s