-
Notifications
You must be signed in to change notification settings - Fork 882
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(azure): url_helper: specify User-Agent when using headers_cb with…
… readurl() (#5298) My previous change #5218 introduced a bug where IMDS request is missing `Cloud-Init` UserAgent and contains `python-requests` UserAgent instead. A review showed that no users of `headers_cb` were specifying user-agent and it seems unexpected that it wouldn't be defined similar to users of `headers`. This PR updates readurl() to specify User-Agent in `req_args` for users passing in `headers_cb`.
- Loading branch information
Showing
2 changed files
with
78 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters