-
Notifications
You must be signed in to change notification settings - Fork 194
8283544: HttpClient GET method adds Content-Length: 0 header #413
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
Conversation
|
👋 Welcome back goetz! A progress list of the required criteria for merging this PR into |
|
@GoeLin This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
|
This backport pull request has now been updated with issue from the original commit. |
|
|
|
/integrate |
|
Going to push as commit 3c17462. |
I backport this for parity with 17.0.18-oracle.
Clean backport. Original change is in 19.
The test does not build as https://bugs.openjdk.org/browse/JDK-8276559 (httpclient) Consider adding an HttpRequest.Builder.HEAD method to build a HEAD request.
is not in 17. It was only added in 18. Subtest headWithNoBody() is the problem.
I could replace the call to HEAD() by the implementation of that simple method.
This does not work though. The test uses the HttpRequestBuilderImpl. There
HEAD() is implemented as return method0("HEAD", null);
But method0 is private, and method() rejects null.
Using the implementation of the default method in HttpRequest does not work with HttpRequestBuilderImpl.
In this case the test returns a Http error 400.
Thus I just omit the test. See second commit.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u.git pull/413/head:pull/413$ git checkout pull/413Update a local copy of the PR:
$ git checkout pull/413$ git pull https://git.openjdk.org/jdk17u.git pull/413/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 413View PR using the GUI difftool:
$ git pr show -t 413Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u/pull/413.diff
Using Webrev
Link to Webrev Comment