-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Force Host header to be first in ClientRequest #3342
Force Host header to be first in ClientRequest #3342
Conversation
If there isn't a .netrc file specified by an environment variable, it can be confusing to see warnings about it. If NETRC isn't set, don't warn. Only warn if: a) can't resolve HOME, b) can load, but can't parse file, c) can't find file, d) file appears to exist at the default location but is unreadable for some reason.
Codecov Report
@@ Coverage Diff @@
## master #3342 +/- ##
==========================================
- Coverage 98.03% 97.97% -0.06%
==========================================
Files 44 44
Lines 8039 8069 +30
Branches 1357 1356 -1
==========================================
+ Hits 7881 7906 +25
- Misses 65 68 +3
- Partials 93 95 +2
Continue to review full report at Codecov.
|
Hey, please add yourself to contributors and add a news fragment for changelog :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is not 100% correct.
Please move hdrs.HOST
processing into update_headers()
function
* Update async-timeout from 3.0.0 to 3.0.1 * Update cython from 0.28.5 to 0.29 * Update cython from 0.28.5 to 0.29 * Update cython from 0.28.5 to 0.29 * Update gunicorn from 19.8.1 to 19.9.0 * Update tox from 3.5.0 to 3.5.2
…date_auto_headers
…ent/aiohttp into GenericStudent-host-header-position
Thanks! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
What do these changes do?
This enforces that the
Host
header is added / passed first inClientRequest
class under theupdate_auto_headers
method.Are there changes in behavior for the user?
None
Related issue number
#3265
Checklist
CONTRIBUTORS.txt
CHANGES
folder<issue_id>.<type>
for example (588.bugfix)issue_id
change it to the pr id after creating the pr.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.