Spade

Mini Shell

Directory:~$ /lib/python2.7/site-packages/requests_toolbelt/adapters/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //lib/python2.7/site-packages/requests_toolbelt/adapters/host_header_ssl.pyo

�
ӵ Yc@s0dZddlmZdefd��YZdS(s�
requests_toolbelt.adapters.host_header_ssl
==========================================

This file contains an implementation of the HostHeaderSSLAdapter.
i����(tHTTPAdaptertHostHeaderSSLAdaptercBseZdZd�ZRS(s�
    A HTTPS Adapter for Python Requests that sets the hostname for
certificate
    verification based on the Host header.

    This allows requesting the IP address directly via HTTPS without
getting
    a "hostname doesn't match" exception.

    Example usage:

        >>> s.mount('https://', HostHeaderSSLAdapter())
        >>> s.get("https://93.184.216.34",
headers={"Host": "example.org"})

   
cKs�d}x4|jD])}|j�dkr|j|}PqqW|jj}|r\||d<nd|kr{|jdd�ntt|�j||�S(Nthosttassert_hostname(	tNonetheaderstlowertpoolmanagertconnection_pool_kwtpoptsuperRtsend(tselftrequesttkwargsthost_headertheadertconnection_pool_kwargs((sN/usr/lib/python2.7/site-packages/requests_toolbelt/adapters/host_header_ssl.pyRs

(t__name__t
__module__t__doc__R(((sN/usr/lib/python2.7/site-packages/requests_toolbelt/adapters/host_header_ssl.pyRs
N(Rtrequests.adaptersRR(((sN/usr/lib/python2.7/site-packages/requests_toolbelt/adapters/host_header_ssl.pyt<module>s