Skip to content

fix: reset user agent correctly#375

Merged
koebi merged 2 commits intomainfrom
user-agent
Mar 5, 2026
Merged

fix: reset user agent correctly#375
koebi merged 2 commits intomainfrom
user-agent

Conversation

@koebi
Copy link
Copy Markdown
Collaborator

@koebi koebi commented Mar 4, 2026

If the request raises an exception, the user agent was not reset properly.
Due to the finally-statement, we can be sure that this definitely happens anyway.

In case an old ORStools-related user agent was still set, it is now reset to an empty string, cleaning up old mistakes.

koebi added 2 commits March 4, 2026 15:53
If the request raises an exception, the user agent was not reset
properly.
Due to the `finally`-statement, we can be sure that this definitely happens anyway.

In case an old ORStools-related user agent was still set, it is now
reset to an empty string, cleaning up old mistakes.
@koebi koebi merged commit 3f52dda into main Mar 5, 2026
8 checks passed
@koebi koebi deleted the user-agent branch March 5, 2026 07:39
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