File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -152,25 +152,31 @@ ngx_http_srcache_access_handler(ngx_http_request_t *r)
152
152
153
153
rc = ngx_http_srcache_fetch_header_filter (r );
154
154
155
+ dd ("srcache fetch header returned %d" , (int ) rc );
156
+
155
157
if (rc == NGX_ERROR || rc > NGX_OK || r -> header_only ) {
156
158
return rc ;
157
159
}
158
160
159
- rc = ngx_http_srcache_next_body_filter (r , ctx -> body_from_cache );
161
+ if (!r -> filter_finalize ) {
162
+ rc = ngx_http_srcache_next_body_filter (r ,
163
+ ctx -> body_from_cache );
160
164
161
- if (rc == NGX_ERROR ) {
162
- r -> connection -> error = 1 ;
163
- return NGX_ERROR ;
164
- }
165
+ if (rc == NGX_ERROR ) {
166
+ r -> connection -> error = 1 ;
167
+ return NGX_ERROR ;
168
+ }
165
169
166
- if (rc > NGX_OK ) {
167
- return rc ;
170
+ if (rc > NGX_OK ) {
171
+ return rc ;
172
+ }
168
173
}
169
174
170
175
dd ("sent body from cache: %d" , (int ) rc );
171
176
dd ("finalize from here..." );
172
177
173
- ngx_http_finalize_request (r , NGX_OK );
178
+ ngx_http_finalize_request (r , rc );
179
+
174
180
/* dd("r->main->count (post): %d", (int) r->main->count); */
175
181
return NGX_DONE ;
176
182
}
You can’t perform that action at this time.
0 commit comments