Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testServerIssue5953 (0.2 sec)

  1. src/net/http/sniff_test.go

    		}
    		resp.Body.Close()
    	}
    }
    
    // Issue 5953: shouldn't sniff if the handler set a Content-Type header,
    // even if it's the empty string.
    func TestServerIssue5953(t *testing.T) { run(t, testServerIssue5953) }
    func testServerIssue5953(t *testing.T, mode testMode) {
    	cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		w.Header()["Content-Type"] = []string{""}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 07 16:53:14 UTC 2022
    - 9.6K bytes
    - Viewed (0)
Back to top