| Index: net/http/http_network_transaction_unittest.cc
|
| ===================================================================
|
| --- net/http/http_network_transaction_unittest.cc (revision 18186)
|
| +++ net/http/http_network_transaction_unittest.cc (working copy)
|
| @@ -1256,12 +1256,14 @@
|
| // Since we have proxy, should try to establish tunnel.
|
| MockWrite data_writes1[] = {
|
| MockWrite("CONNECT www.google.com:443 HTTP/1.1\r\n"
|
| - "Host: www.google.com\r\n\r\n"),
|
| + "Host: www.google.com\r\n"
|
| + "Proxy-Connection: keep-alive\r\n\r\n"),
|
|
|
| // After calling trans->RestartWithAuth(), this is the request we should
|
| // be issuing -- the final header line contains the credentials.
|
| MockWrite("CONNECT www.google.com:443 HTTP/1.1\r\n"
|
| "Host: www.google.com\r\n"
|
| + "Proxy-Connection: keep-alive\r\n"
|
| "Proxy-Authorization: Basic Zm9vOmJheg==\r\n\r\n"),
|
| };
|
|
|
| @@ -1359,7 +1361,8 @@
|
| // Since we have proxy, should try to establish tunnel.
|
| MockWrite data_writes[] = {
|
| MockWrite("CONNECT www.google.com:443 HTTP/1.1\r\n"
|
| - "Host: www.google.com\r\n\r\n"),
|
| + "Host: www.google.com\r\n"
|
| + "Proxy-Connection: keep-alive\r\n\r\n"),
|
| };
|
|
|
| // The proxy responds to the connect with a 407.
|
| @@ -1417,7 +1420,8 @@
|
| // Since we have proxy, should try to establish tunnel.
|
| MockWrite data_writes[] = {
|
| MockWrite("CONNECT www.google.com:443 HTTP/1.1\r\n"
|
| - "Host: www.google.com\r\n\r\n"),
|
| + "Host: www.google.com\r\n"
|
| + "Proxy-Connection: keep-alive\r\n\r\n"),
|
| };
|
|
|
| MockRead data_reads[] = {
|
| @@ -2159,7 +2163,8 @@
|
| // Since we have proxy, should try to establish tunnel.
|
| MockWrite data_writes1[] = {
|
| MockWrite("CONNECT www.google.com:443 HTTP/1.1\r\n"
|
| - "Host: www.google.com\r\n\r\n"),
|
| + "Host: www.google.com\r\n"
|
| + "Proxy-Connection: keep-alive\r\n\r\n"),
|
| };
|
|
|
| // The proxy responds to the connect with a 404, using a persistent
|
| @@ -2983,7 +2988,8 @@
|
|
|
| MockWrite proxy_writes[] = {
|
| MockWrite("CONNECT www.google.com:443 HTTP/1.1\r\n"
|
| - "Host: www.google.com\r\n\r\n"),
|
| + "Host: www.google.com\r\n"
|
| + "Proxy-Connection: keep-alive\r\n\r\n"),
|
| };
|
|
|
| MockRead proxy_reads[] = {
|
| @@ -2993,7 +2999,8 @@
|
|
|
| MockWrite data_writes[] = {
|
| MockWrite("CONNECT www.google.com:443 HTTP/1.1\r\n"
|
| - "Host: www.google.com\r\n\r\n"),
|
| + "Host: www.google.com\r\n"
|
| + "Proxy-Connection: keep-alive\r\n\r\n"),
|
| MockWrite("GET / HTTP/1.1\r\n"
|
| "Host: www.google.com\r\n"
|
| "Connection: keep-alive\r\n\r\n"),
|
|
|