Skip to content

Commit 76d15e7

Browse files
committed
removed check for r->subrequest_in_memory for >= 1.13.10
Since 1.13.10 when r->subrequest_in_memory is set, output is stored in r->out buffer by postpone filter (https://hg.nginx.org/nginx/rev/20f139e9ffa8).
1 parent 7950a25 commit 76d15e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ngx_postgres_handler.c

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ ngx_postgres_handler(ngx_http_request_t *r)
5252

5353
dd("entering");
5454

55+
#if defined(nginx_version) && (nginx_version < 13010)
5556
if (r->subrequest_in_memory) {
5657
/* TODO: add support for subrequest in memory by
5758
* emitting output into u->buffer instead */
@@ -63,6 +64,7 @@ ngx_postgres_handler(ngx_http_request_t *r)
6364
dd("returning NGX_HTTP_INTERNAL_SERVER_ERROR");
6465
return NGX_HTTP_INTERNAL_SERVER_ERROR;
6566
}
67+
#endif
6668

6769
pglcf = ngx_http_get_module_loc_conf(r, ngx_postgres_module);
6870

0 commit comments

Comments
 (0)