We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71a81c2 commit 8659235Copy full SHA for 8659235
plugins/lua/ts_lua_util.cc
@@ -53,7 +53,10 @@ void
53
ts_lua_update_server_response_hdrp(ts_lua_http_ctx *http_ctx)
54
{
55
if (http_ctx->server_response_hdrp) {
56
- TSHttpTxnServerRespGet(http_ctx->txnp, &http_ctx->server_response_bufp, &http_ctx->server_response_hdrp);
+ if (TSHttpTxnServerRespGet(http_ctx->txnp, &http_ctx->server_response_bufp, &http_ctx->server_response_hdrp) != TS_SUCCESS) {
57
+ TSError("[ts_lua][%s] failed to get server response", __FUNCTION__);
58
+ return;
59
+ }
60
}
61
62
0 commit comments