Skip to content

Commit ffc8ee2

Browse files
authored
Feautre/add logging (#1)
* Add .idea to gitignore * Change upstream to headers
1 parent 0267b18 commit ffc8ee2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
*swp
22
*o
33
*__pycache__*
4+
.idea/*
5+
.vscode/*

ngx_http_websocket_stat_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ ngx_http_websocket_stat_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
394394
template_ctx_s template_ctx;
395395
template_ctx.ws_ctx = ctx;
396396

397-
if (r->upstream->upgrade) {
397+
if (r->headers_in.upgrade) {
398398
if (r->upstream->peer.connection) {
399399
// connection opened
400400
ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_websocket_stat_ctx));

0 commit comments

Comments
 (0)