Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testServeFileContentType (0.22 sec)

  1. src/net/http/fs_test.go

    		if err != nil {
    			t.Fatalf("open of %s: %v", name, err)
    		}
    		defer f.Close()
    	}
    	test(Dir(""))
    	test(Dir("."))
    	test(Dir("./"))
    }
    
    func TestServeFileContentType(t *testing.T) { run(t, testServeFileContentType) }
    func testServeFileContentType(t *testing.T, mode testMode) {
    	const ctype = "icecream/chocolate"
    	ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
Back to top