-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent X-Amzn-Trace-Id from Being Added More Than Once (#40)
* Prevent X-Amzn-TraceId from Being Added More Than Once Under some circumstances, the chain of calls through `DelegatingHandler` instances can reach a particular handler more than once. When that handler is `HttpClientXRayTracingHandler`, it produces an X-Amzn-Trace-Id header that cannot be parsed because it is _multiple_ headers. (As represented in a string by separating them with ", ".) This patch checks whether X-Amzn-Trace-Id has already been added, and skips adding another if it already has been. * Replaces Existing X-Amzn-Trace-Id Header, If Present
- Loading branch information
1 parent
994c27f
commit 9948885
Showing
2 changed files
with
9 additions
and
3 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