Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPostRedirects (0.3 sec)

  1. src/net/http/client_test.go

    		t.Errorf("url.Error.Err = %v; want %v", ue.Err, context.Canceled)
    	}
    }
    
    type redirectTest struct {
    	suffix       string
    	want         int // response code
    	redirectBody string
    }
    
    func TestPostRedirects(t *testing.T) {
    	postRedirectTests := []redirectTest{
    		{"/", 200, "first"},
    		{"/?code=301&next=302", 200, "c301"},
    		{"/?code=302&next=302", 200, "c302"},
    		{"/?code=303&next=301", 200, "c303wc301"}, // Issue 9348
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top