From 75ce9214881943e46a29be3457ffa856d4292284 Mon Sep 17 00:00:00 2001 From: lijia Date: Mon, 24 Jun 2024 11:33:59 +0800 Subject: feat: add history and lastest different version test stage. --- src/http_decoder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/http_decoder.cpp') diff --git a/src/http_decoder.cpp b/src/http_decoder.cpp index 551b0b0..9b861d9 100644 --- a/src/http_decoder.cpp +++ b/src/http_decoder.cpp @@ -545,11 +545,11 @@ extern "C" if (ret < 0) { stellar_session_plugin_dettach_current_session(sess); - return (void *)"__not_http_session__"; + return (void *)HTTP_CTX_NOT_HTTP; } } - return (void *)"__fake_http_decoder_ctx__"; + return (void *)HTTP_CTX_IS_HTTP; } void httpd_session_ctx_free_cb(struct session *sess, void *session_ctx, void *plugin_env) @@ -557,7 +557,7 @@ extern "C" if(NULL == plugin_env || NULL == session_ctx){ return; } - if(strncmp((const char *)session_ctx, "__not_http_session__", strlen("__not_http_session__")) == 0){ + if(strncmp((const char *)session_ctx, HTTP_CTX_NOT_HTTP, strlen(HTTP_CTX_NOT_HTTP)) == 0){ return; } struct http_decoder_env *httpd_env = (struct http_decoder_env *)plugin_env; -- cgit v1.2.3