Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestServerContentTypeSniff (0.18 sec)

  1. src/net/http/sniff_test.go

    		ct := DetectContentType(tt.data)
    		if ct != tt.contentType {
    			t.Errorf("%v: DetectContentType = %q, want %q", tt.desc, ct, tt.contentType)
    		}
    	}
    }
    
    func TestServerContentTypeSniff(t *testing.T) { run(t, testServerContentTypeSniff) }
    func testServerContentTypeSniff(t *testing.T, mode testMode) {
    	cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		i, _ := strconv.Atoi(r.FormValue("i"))
    		tt := sniffTests[i]
    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