|
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/middleware/ |
Upload File : |
�
r�\c @ s0 d d l m Z m Z d e f d � � YZ d S( i����( t http_datet parse_http_date_safet ConditionalGetMiddlewarec B s e Z d Z d � Z RS( s
Handles conditional GET operations. If the response has a ETag or
Last-Modified header, and the request has If-None-Match or
If-Modified-Since, the response is replaced by an HttpNotModified.
Also sets the Date and Content-Length response-headers.
c C s t � | d <| j rC | j d � rC t t | j � � | d <n | j d � r� | j j d � } | | d k r� d | _ q� n | j d � r| j j d � } | d k r� t
| � } n | d k rt
| d � } | d k r| | k rd | _ qqn | S( Nt Dates Content-Lengtht ETagt HTTP_IF_NONE_MATCHi0 s
Last-Modifiedt HTTP_IF_MODIFIED_SINCE( R t streamingt
has_headert strt lent contentt METAt gett status_codet NoneR ( t selft requestt responset
if_none_matcht if_modified_sincet
last_modified( ( s8 /tmp/pip-install-XxeQeY/django/django/middleware/http.pyt process_response s
( t __name__t
__module__t __doc__R ( ( ( s8 /tmp/pip-install-XxeQeY/django/django/middleware/http.pyR s N( t django.utils.httpR R t objectR ( ( ( s8 /tmp/pip-install-XxeQeY/django/django/middleware/http.pyt <module> s