- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestClientErrorWithRequestURI (0.24 sec)
-
src/net/http/client_test.go
} } cst.close() if !strings.Contains(errLog.String(), "TLS handshake error") { t.Errorf("expected an error log message containing 'TLS handshake error'; got %q", errLog) } } func TestClientErrorWithRequestURI(t *testing.T) { defer afterTest(t) req, _ := NewRequest("GET", "http://localhost:1234/", nil) req.RequestURI = "/this/field/is/illegal/and/should/error/" _, err := DefaultClient.Do(req) if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0)