mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8270290: NTLM authentication fails if HEAD request is used
Reviewed-by: dfuchs, michaelm
This commit is contained in:
parent
bfd6163471
commit
3e0d7c33d4
2 changed files with 307 additions and 1 deletions
|
@ -2961,7 +2961,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
|
|||
/* must save before calling close */
|
||||
reuseClient = http;
|
||||
InputStream is = http.getInputStream();
|
||||
if (!method.equals("HEAD")) {
|
||||
if (!method.equals("HEAD") || tunnelState == TunnelState.SETUP) {
|
||||
try {
|
||||
/* we want to read the rest of the response without using the
|
||||
* hurry mechanism, because that would close the connection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue