Skip to content
Myr

cookies.morsel_to_cookie(morsel) raise TypeError repaired.

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

morsel_to_cookie(mosel) method raise TypeError: create_cookie() got unexpected keyword arguments: ['path_specified', 'domain_specified', 'port_specified', 'domain_initial_dot']. so we should remove these param from create_cookie(...)

authored by wasw100 · committed by wasw100 · parent 3bb13f8 · Browse files · 1 file+0 added−4 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+0 added−4 removed

  • other:+0 added−4 removed

1 file+0 added−4 removed

modified:requests/cookies.py-4 removed
357 unmodified lines
358 name=morsel.key,359 value=morsel.value,360 version=morsel['version'] or 0,361 port=None,362 port_specified=False,362 domain=morsel['domain'],364 domain_specified=bool(morsel['domain']),365 domain_initial_dot=morsel['domain'].startswith('.'),363 path=morsel['path'],367 path_specified=bool(morsel['path']),364 secure=bool(morsel['secure']),365 expires=morsel['max-age'] or morsel['expires'],366 discard=False,367 comment=morsel['comment'],
18 unmodified lines