mirror of https://github.com/ledisdb/ledisdb.git
put args into reqContext
This commit is contained in:
parent
33a2e6afb9
commit
6947255c22
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue