Skip to content
Myr

automatic header expansion

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 3b9fc98 · Browse files · 1 file+9 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−1 removed

  • other:+9 added−1 removed

1 file+9 added−1 removed

modified:requests/api.py+9 added-1 removed
13 unmodified lines
14import config15from .models import Request, Response, AuthObject16from .status_codes import codes17from .hooks import dispatch_hook18from .utils import cookiejar_from_dict18from .utils import cookiejar_from_dict, header_expand1920from urlparse import urlparse2122__all__ = ('request', 'get', 'head', 'post', 'patch', 'put', 'delete')
24 unmodified lines
47 cookies = {}4849 cookies = cookiejar_from_dict(cookies)5051 # Expand header values52 if headers:53 for k, v in headers.items() or {}:54 headers[k] = header_expand(v)5556 # headers = [(k, map(header_expand, v)) for k,v in headers.items()]57 # print headers5859 args = dict(60 method = method,61 url = url,62 data = data,
92 unmodified lines