From 6947255c22b9d8a238b1c90ccb70d2c2cafdb388 Mon Sep 17 00:00:00 2001 From: wenyekui Date: Fri, 1 Aug 2014 15:22:24 +0800 Subject: [PATCH] put args into reqContext --- server/client_http.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/client_http.go b/server/client_http.go index ed1b7b9..a99b62c 100644 --- a/server/client_http.go +++ b/server/client_http.go @@ -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" { return nil, fmt.Errorf("unsupported command: '%s'", cmd) } + req.args = args req.remoteAddr = c.addr(r) req.resp = &httpWriter{contentType, cmd, w}