We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32ed881 commit 79dc98dCopy full SHA for 79dc98d
request.go
@@ -77,10 +77,10 @@ func newRequest(hr *http.Request, hc http.ResponseWriter) *Request {
77
Body: hr.Body,
78
Close: hr.Close,
79
Host: hr.Host,
80
- Referer: hr.Referer,
81
- UserAgent: hr.UserAgent,
+ Referer: hr.Referer(),
+ UserAgent: hr.UserAgent(),
82
FullParams: hr.Form,
83
- Cookie: hr.Cookie,
+ Cookie: hr.Cookies(),
84
RemoteAddr: remoteAddr.IP.String(),
85
RemotePort: remoteAddr.Port,
86
}
@@ -181,7 +181,7 @@ func (r *Request) parseParams() (err os.Error) {
181
switch r.Method {
182
case "POST":
183
if r.Body == nil {
184
- return os.ErrorString("missing form body")
+ return os.NewError("missing form body")
185
186
187
ct := r.Headers.Get("Content-Type")
0 commit comments