[
https://issues.apache.org/jira/browse/NUTCH-3002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17778124#comment-17778124
]
Hudson commented on NUTCH-3002:
-------------------------------
SUCCESS: Integrated in Jenkins build Nutch ยป Nutch-trunk #132 (See
[https://ci-builds.apache.org/job/Nutch/job/Nutch-trunk/132/])
NUTCH-3002 Protocol-okhttp HttpResponse: HTTP header metadata lookup should be
case-insensitive (snagel:
[https://github.com/apache/nutch/commit/e96cfc56ee04c8e7e07e11d4eef521b4674a9ec6])
* (add)
src/plugin/protocol-http/src/test/org/apache/nutch/protocol/http/TestResponse.java
* (edit) src/java/org/apache/nutch/net/protocols/Response.java
* (edit)
src/plugin/protocol-okhttp/src/java/org/apache/nutch/protocol/okhttp/OkHttpResponse.java
* (add) src/java/org/apache/nutch/metadata/CaseInsensitiveMetadata.java
* (edit) src/java/org/apache/nutch/metadata/Metadata.java
* (add)
src/plugin/protocol-okhttp/src/test/org/apache/nutch/protocol/okhttp/TestResponse.java
* (edit) src/java/org/apache/nutch/metadata/SpellCheckedMetadata.java
> Protocol-okhttp HttpResponse: HTTP header metadata lookup should be
> case-insensitive
> ------------------------------------------------------------------------------------
>
> Key: NUTCH-3002
> URL: https://issues.apache.org/jira/browse/NUTCH-3002
> Project: Nutch
> Issue Type: Bug
> Components: metadata, plugin, protocol
> Affects Versions: 1.19
> Reporter: Sebastian Nagel
> Assignee: Sebastian Nagel
> Priority: Major
> Fix For: 1.20
>
>
> Lookup of HTTP headers in the class HttpResponse should be case-insensitive -
> for example, any "Location" header should be returned independent from the
> casing sent by the sender.
> While protocol-http uses the class SpellCheckedMetadata which provides
> case-insensitive lookups (as part of the spell-checking functionality),
> protocol-okhttp relies on the class Metadata which stores the metadata values
> case-sensitive.
> It's a good question, whether we still need to spell-check HTTP headers.
> However, case-insensitive look-ups are definitely required. Especially, since
> HTTP header names are case-insensitive in HTTP/2.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)