Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NUTCH-2376 Improve configurability of HTTP Accept* header fields #186

Merged

Conversation

sebastian-nagel
Copy link
Contributor

  • Accept, Accept-Language and Accept-Charset are configured and used the
    same way for both protocol-http and protocol-httpclient
  • a space as value will unset these header fields (not sent in request)
    I've tried to overwrite the default by an empty value but that's not possible with the Hadoop configuration mechanism. Of course, one could configure instead * as "Accept-Language" or "Accept-Charset" (resp. */* as "Accept" content type) but that will unnecessarily blow up the HTTP requests.

- Accept, Accept-Language and Accept-Charset are configured and used the
  same way for both protocol-http and protocol-httpclient
- a space as value will unset these header fields (not sent in request)
@lewismc
Copy link
Member

lewismc commented May 19, 2017

Duplicate PR @sebastian-nagel, please reopen if this is the case

@lewismc lewismc closed this May 19, 2017
@sebastian-nagel
Copy link
Contributor Author

sebastian-nagel commented May 19, 2017

This one is for 1.x/master, #187 is for 2.x. Sorry, the next time I'll also add a statement to which branch the PR applies. Thanks for the review!

@sebastian-nagel sebastian-nagel merged commit af9d7a3 into apache:master May 19, 2017
@lewismc
Copy link
Member

lewismc commented May 19, 2017 via email

@sebastian-nagel
Copy link
Contributor Author

No problem, it's easily overseen.

@sebastian-nagel sebastian-nagel deleted the NUTCH-2376-http-accept-header branch August 12, 2017 14:43
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