Skip to content

Commit

Permalink
Make nexus header check case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Nov 28, 2024
1 parent 89021d0 commit 94d771d
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 94d771d

Please sign in to comment.