Skip to content

Conversation

@shantyk
Copy link

@shantyk shantyk commented Oct 29, 2025

Please see IDETECT-4897

@shantyk shantyk self-assigned this Oct 29, 2025
Map<String, String> caseInsensitiveResponseHeaders = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
caseInsensitiveResponseHeaders.putAll(responseHeaders);

return Optional.ofNullable(caseInsensitiveResponseHeaders.get(HttpHeaders.LOCATION)).orElseThrow(() -> new IntegrationException("Could not find Location header."));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ensures the keys are case insensitive but the values are still case sensitive. (A test should be added)

@shantyk shantyk changed the title fix (multipart upload): Update FileUploader class to handle location header with no case sensitivity. DRAFT fix (multipart upload): Update FileUploader class to handle location header with no case sensitivity. Oct 29, 2025
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