Skip to content

Commit 47841f6

Browse files
committed
Fix logging and request headers on nginx
1 parent 73703b5 commit 47841f6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ngx_http_redirectionio_protocol.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void ngx_http_redirectionio_protocol_send_match(ngx_connection_t *c, ngx_http_re
2727
ngx_pool_cleanup_t *cln;
2828

2929
// Create header map
30-
part = &r->headers_out.headers.part;
30+
part = &r->headers_in.headers.part;
3131
h = part->elts;
3232

3333
for (i = 0; /* void */ ; i++) {
@@ -41,8 +41,7 @@ void ngx_http_redirectionio_protocol_send_match(ngx_connection_t *c, ngx_http_re
4141
i = 0;
4242
}
4343

44-
// Not used skip it
45-
if (h[i].hash == 0 || h[i].value.len <= 0 || h[i].key.len <= 0) {
44+
if (h[i].value.len <= 0 || h[i].key.len <= 0) {
4645
continue;
4746
}
4847

0 commit comments

Comments
 (0)