Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFileServerNamesEscape (0.15 sec)

  1. src/net/http/fs_test.go

    		t.Fatal("ReadResponse: ", err)
    	}
    	if res.StatusCode == 200 {
    		t.Errorf("got status 200; want an error. Body is:\n%s", got.Bytes())
    	}
    }
    
    func TestFileServerNamesEscape(t *testing.T) { run(t, testFileServerNamesEscape) }
    func testFileServerNamesEscape(t *testing.T, mode testMode) {
    	ts := newClientServerTest(t, mode, FileServer(Dir("testdata"))).ts
    	for _, path := range []string{
    		"/../testdata/file",
    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