anuq opened a new pull request, #1827: URL: https://github.com/apache/stormcrawler/pull/1827
## Summary Fixes #1588 HTTP headers are case-insensitive per RFC 2616, but `Metadata` had inconsistent behavior — `getValues()` and `containsKey()` did a case-insensitive fallback while write operations (`addValue`, `setValue`, `setValues`, `addValues`, `remove`) stored keys with their original casing. ## Changes - Added a private `normalizeKey(String key)` helper that lowercases keys using `Locale.ROOT` - Applied it consistently across all read and write operations - Simplified `getValues()` and `containsKey()` — no more two-step fallback needed - Added `testCaseInsensitiveKeys()` test covering get, containsKey, addValue deduplication, and remove across mixed casings ## Test ``` Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
