Skip to content

Fix key= auth: Include headers set by BaseEngine() in requests #354

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmick
Copy link

@dmick dmick commented Jul 25, 2025

BaseEngine.construct_request_kwargs() fails to preserve existing headers set in self.requests by BaseEngine.__init__. Merge the new headers with the existing engine headers. (This was noticed with 'key' for API access via key.)

Fixes: #353

BaseEngine.construct_request_kwargs() fails to preserve existing
headers set in self.requests by BaseEngine.__init__.  Merge the
new headers with the existing engine headers.  (This was noticed
with 'key' for API access via key.)

Fixes: maxtepkeev#353
Signed-off-by: Dan Mick <[email protected]>
@dmick dmick changed the title Include headers set by BaseEngine() in requests Fix key= auth: Include headers set by BaseEngine() in requests Jul 26, 2025
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.

authenticating with API key is broken; request overwrites X-Redmine-Api-Key header from BaseEngine.__init__
1 participant