You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
When the default value of None is used, the header should not be added to the request, as that is the expected behavior. It is also how Query works and it should be consistent.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the
Header
type for a variable, it is always added to the request, even if the default ofNone
is usedTo Reproduce
Result:
{'headers': {'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'Foo': 'None', 'Host': 'httpbin.org', 'User-Agent': 'python-requests/2.20.1'}}
Expected behavior
When the default value of
None
is used, the header should not be added to the request, as that is the expected behavior. It is also howQuery
works and it should be consistent.The text was updated successfully, but these errors were encountered: