Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testClientCopyHeadersOnRedirect (0.19 sec)

  1. src/net/http/client_test.go

    // Issue 35104: Since both URLs have the same host (localhost)
    // but different ports, sensitive headers like Cookie and Authorization
    // are preserved.
    func TestClientCopyHeadersOnRedirect(t *testing.T) { run(t, testClientCopyHeadersOnRedirect) }
    func testClientCopyHeadersOnRedirect(t *testing.T, mode testMode) {
    	const (
    		ua   = "some-agent/1.2"
    		xfoo = "foo-val"
    	)
    	var ts2URL string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top