Edit File: host_header_ssl.cpython-36.pyc
3 �P\t � @ s$ d Z ddlmZ G dd� de�ZdS )z� requests_toolbelt.adapters.host_header_ssl ========================================== This file contains an implementation of the HostHeaderSSLAdapter. � )�HTTPAdapterc s e Zd ZdZ� fdd�Z� ZS )�HostHeaderSSLAdaptera� 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"}) c sj d }x&|j D ]}|j� dkr|j | }P qW | jj}|rB||d<