mirror of
https://github.com/fluencelabs/redis
synced 2025-06-16 10:41:22 +00:00
Gopher: initial request handling.
This commit is contained in:
@ -1564,6 +1564,14 @@ void processInputBuffer(client *c) {
|
||||
|
||||
if (c->reqtype == PROTO_REQ_INLINE) {
|
||||
if (processInlineBuffer(c) != C_OK) break;
|
||||
/* If the Gopher mode and we got zero or one argument, process
|
||||
* the request in Gopher mode. */
|
||||
if (server.gopher_enabled && (c->argc == 1 || c->argc == 0)) {
|
||||
processGopherRequest(c);
|
||||
resetClient(c);
|
||||
c->flags |= CLIENT_CLOSE_AFTER_REPLY;
|
||||
break;
|
||||
}
|
||||
} else if (c->reqtype == PROTO_REQ_MULTIBULK) {
|
||||
if (processMultibulkBuffer(c) != C_OK) break;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user