

_V                 @   s   d  Z  d d   Z d S)z@
Functions that modify an HTTP request or response in some way.
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)
z
    Removes the content of responses for HEAD requests, 1xx, 204 and 304
    responses. Ensures compliance with RFC 2616, section 4.3.
    d         0      0zContent-LengthHEAD)r   r   )status_codeZ	streamingZstreaming_contentcontentmethod)requestresponse r   3/tmp/pip-build-ghmbqnp_/Django/django/http/utils.pyconditional_content_removal   s    .			r   N)__doc__r   r   r   r   r   <module>   s   	