Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCodesPreventingContentTypeAndBody (0.48 sec)

  1. src/net/http/serve_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	res.Body.Close()
    	if string(all) != "hi" {
    		t.Errorf("Body = %q; want hi", all)
    	}
    }
    
    // Issue 6157, Issue 6685
    func TestCodesPreventingContentTypeAndBody(t *testing.T) {
    	for _, code := range []int{StatusNotModified, StatusNoContent} {
    		ht := newHandlerTest(HandlerFunc(func(w ResponseWriter, r *Request) {
    			if r.URL.Path == "/header" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top