- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testServerContentTypeSniff (0.42 sec)
-
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)