Home | History | Annotate | Download | only in cgi

Lines Matching full:nil

31 	if err != nil {
32 return nil, err
37 return r, nil
56 return nil, errors.New("cgi: no REQUEST_METHOD in environment")
63 return nil, errors.New("cgi: invalid SERVER_PROTOCOL version")
74 if err != nil {
75 return nil, errors.New("cgi: bad CONTENT_LENGTH in environment: " + lenstr)
113 if r.TLS == nil {
119 if err != nil {
120 return nil, errors.New("cgi: failed to parse host and REQUEST_URI into a URL: " + rawurl)
126 if r.URL == nil {
128 if err != nil {
129 return nil, errors.New("cgi: failed to parse REQUEST_URI into a URL: " + uriStr)
139 return r, nil
144 // an error is returned. The provided handler may be nil to use
148 if err != nil {
151 if handler == nil {
160 rw.Write(nil) // make sure a response is sent
161 if err = rw.bufw.Flush(); err != nil {
164 return nil