Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http_request passing headers into webtest through keyword argument. #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

KoleS46
Copy link

@KoleS46 KoleS46 commented Feb 9, 2016

The request method doesn't have headers as a positional argument.
def request(self, url_or_req, status=None, expect_errors=False, **req_params):
https://github.com/Pylons/webtest/blob/master/webtest/app.py#L526
This causes the headers to be not present in the request.
Therefore we need to pass it as a keyword one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant