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 793090a commit d3143d3Copy full SHA for d3143d3
request.go
@@ -242,6 +242,9 @@ func (r *Request) parseCookies() (err os.Error) {
242
for _, cookie := range (cookies) {
243
cookie = strings.TrimSpace(cookie)
244
parts := strings.Split(cookie, "=", 2)
245
+ if len(parts) != 2 {
246
+ continue
247
+ }
248
r.Cookies[parts[0]] = parts[1]
249
}
250
web.go
@@ -216,7 +216,7 @@ func routeHandler(req *Request, c conn) {
216
217
//log the request
218
if len(req.URL.RawQuery) == 0 {
219
- log.Stdout(requestPath)
+ log.Stdout(req.Method + " " + requestPath)
220
} else {
221
log.Stdout(requestPath + "?" + req.URL.RawQuery)
222
0 commit comments