put args into reqContext

This commit is contained in:
wenyekui 2014-08-01 15:22:24 +08:00
parent 33a2e6afb9
commit 6947255c22
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ func (c *httpClient) makeRequest(app *App, r *http.Request, w http.ResponseWrite
if req.cmd == "slaveof" || req.cmd == "fullsync" || req.cmd == "sync" { if req.cmd == "slaveof" || req.cmd == "fullsync" || req.cmd == "sync" {
return nil, fmt.Errorf("unsupported command: '%s'", cmd) return nil, fmt.Errorf("unsupported command: '%s'", cmd)
} }
req.args = args
req.remoteAddr = c.addr(r) req.remoteAddr = c.addr(r)
req.resp = &httpWriter{contentType, cmd, w} req.resp = &httpWriter{contentType, cmd, w}