
    i$              	           d Z ddlmZmZ ddlZddlZddlmZ ddlm	Z	 deez  dej                  d	ej                  d
ej                  dz  fdZy)a  
Method ``http_accept``
----------------------

The ``http_accept`` method evaluates a request as the request of a bot if the
Accept_ header ..

- did not contain ``text/html``

.. _Accept:
   https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept

    )IPv4NetworkIPv6NetworkN   )config)too_many_requestsnetworkrequestcfgreturnc                 8    d|j                   vrt        | d      S y )Nz	text/htmlz,HTTP header Accept did not contain text/html)accept_mimetypesr   )r   r	   r
   s      //root/searxng/searx/botdetection/http_accept.pyfilter_requestr      s#     '222 *XYY    )__doc__	ipaddressr   r   werkzeugflask r   _helpersr   RequestConfigResponser    r   r   <module>r      s^   
    ';&]] 
 	r   