Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestParseFormSemicolonSeparator (0.24 sec)

  1. src/net/http/request_test.go

    		t.Errorf(`req.FormValue("q") = %q, want "foo"`, q)
    	}
    }
    
    // Issue #25192: Test that ParseForm fails but still parses the form when a URL
    // containing a semicolon is provided.
    func TestParseFormSemicolonSeparator(t *testing.T) {
    	for _, method := range []string{"POST", "PATCH", "PUT", "GET"} {
    		req, _ := NewRequest(method, "http://www.google.com/search?q=foo;q=bar&a=1",
    			strings.NewReader("q"))
    		err := req.ParseForm()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
Back to top