Skip to content

Conversation

ivopisarovic
Copy link
Contributor

Description

If a non-bot request comes to the server, it raised an exception because some request may not have content-type header.
Applies to bots with telemetry middleware.

Specific Changes

  • Improved the condition to check if the content-type header is present before checking its value.

Testing

  • Nothing new added.

An updated version of the original PR #1881.

Fix: content-type may not be present in some requests, e.g. /robots.txt request.
@tracyboehrer tracyboehrer merged commit 7a03e65 into microsoft:main Jan 26, 2024
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.

2 participants