- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SERVER_PROTOCOL (0.11 sec)
-
src/net/http/cgi/child_test.go
package cgi import ( "bufio" "bytes" "net/http" "net/http/httptest" "strings" "testing" ) func TestRequest(t *testing.T) { env := map[string]string{ "SERVER_PROTOCOL": "HTTP/1.1", "REQUEST_METHOD": "GET", "HTTP_HOST": "example.com", "HTTP_REFERER": "elsewhere", "HTTP_USER_AGENT": "goclient", "HTTP_FOO_BAR": "baz", "REQUEST_URI": "/path?a=b",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 14 15:42:03 UTC 2020 - 5.2K bytes - Viewed (0) -
src/net/http/cgi/child.go
if r.Method == "" { return nil, errors.New("cgi: no REQUEST_METHOD in environment") } r.Proto = params["SERVER_PROTOCOL"] var ok bool r.ProtoMajor, r.ProtoMinor, ok = http.ParseHTTPVersion(r.Proto) if !ok { return nil, errors.New("cgi: invalid SERVER_PROTOCOL version") } r.Close = true r.Trailer = http.Header{} r.Header = http.Header{} r.Host = params["HTTP_HOST"]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 5.5K bytes - Viewed (0)