diff options
Diffstat (limited to 'proto_proxy.c')
-rw-r--r-- | proto_proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto_proxy.c b/proto_proxy.c index 3e17441..9a6736b 100644 --- a/proto_proxy.c +++ b/proto_proxy.c @@ -595,7 +595,7 @@ int proxy_run_coroutine(lua_State *Lc, mc_resp *resp, io_pending_proxy_t *p, con if (type == LUA_TUSERDATA) { mcp_resp_t *r = luaL_checkudata(Lc, 1, "mcp.response"); _set_noreply_mode(resp, r); - if (r->status != MCMC_OK) { + if (r->status != MCMC_OK && r->resp.type != MCMC_RESP_ERRMSG) { proxy_out_errstring(resp, "backend failure"); } else if (r->cresp) { mc_resp *tresp = r->cresp; |