diff options
| author | lijia <[email protected]> | 2024-06-24 11:33:59 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2024-06-24 14:33:29 +0800 |
| commit | 75ce9214881943e46a29be3457ffa856d4292284 (patch) | |
| tree | aa2f606703e75028fc3903831a8e89042ac2e20c /src/http_decoder.cpp | |
| parent | 5d0168f5eb8c263b3e9b940b99b2c2097ee99282 (diff) | |
feat: add history and lastest different version test stage.
Diffstat (limited to 'src/http_decoder.cpp')
| -rw-r--r-- | src/http_decoder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |
