Accept non URL-encoded headers by xrmx · Pull Request #4103 · open-telemetry/opentelemetry-python
changed the title
Accept non urlencoded headers
Accept non URL-encoded headers
Add a liberal boolean parameter to parse_env_headers default to False to keep backward compatibility for the function. If liberal=True we try to parse the string even if it does comply with the the W3C Baggage HTTP header format to be more compatible with other other languages SDKs that accept non URL-encoded headers by default.
xrmx
marked this pull request as ready for review
xrmx
requested a review
from a team
xrmx added a commit to xrmx/opentelemetry-python that referenced this pull request
Aug 19, 2024After open-telemetry#4103 we accept non url-encoded headers for OTLP. Naively this implementation only accepts digits, ascii letters, underscores (\w) and spaces. Instead broaden the accepted chars to what we accept for urlencoded values so that we accepts = to allow for base64 encoded values.
xrmx
mentioned this pull request
11 tasks
This file contains hidden or 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