Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMuxRedirectLeadingSlashes (0.23 sec)

  1. src/net/http/serve_test.go

    			tries--
    		}
    		if tries < 0 {
    			t.Errorf("%s %s %s, too many redirects", tt.method, tt.host, tt.url)
    		}
    	}
    }
    
    // Tests for https://golang.org/issue/900
    func TestMuxRedirectLeadingSlashes(t *testing.T) {
    	setParallel(t)
    	paths := []string{"//foo.txt", "///foo.txt", "/../../foo.txt"}
    	for _, path := range paths {
    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