Skip to content

Commit

Permalink
Make nexus header check case-insensitive (#2335)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns authored Dec 3, 2024
1 parent 7245bf8 commit 8782de3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ public Result handle(NexusTask task, Scope metricsScope) throws TimeoutException
ScheduledFuture<?> timeoutTask = null;
AtomicBoolean timedOut = new AtomicBoolean(false);
try {
String timeoutString = headers.get(Header.REQUEST_TIMEOUT);
// Parse request timeout, use the context headers to get the timeout
// since they are case-insensitive.
String timeoutString = ctx.getHeaders().get(Header.REQUEST_TIMEOUT);
if (timeoutString != null) {
try {
Duration timeout = NexusUtil.parseRequestTimeout(timeoutString);
Expand Down

0 comments on commit 8782de3

Please sign in to comment.