File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -689,20 +689,20 @@ ngx_http_cache_purge_handler(ngx_http_request_t *r)
689
689
# endif
690
690
691
691
switch (ngx_http_file_cache_purge (r )) {
692
+ case NGX_OK :
693
+ r -> write_event_handler = ngx_http_request_empty_handler ;
694
+ ngx_http_finalize_request (r , ngx_http_cache_purge_send_response (r ));
695
+ return ;
692
696
case NGX_DECLINED :
693
697
ngx_http_finalize_request (r , NGX_HTTP_NOT_FOUND );
694
698
return ;
695
- case NGX_ERROR :
696
- ngx_http_finalize_request (r , NGX_HTTP_INTERNAL_SERVER_ERROR );
697
- return ;
698
699
# if (NGX_HAVE_FILE_AIO )
699
700
case NGX_AGAIN :
700
701
r -> write_event_handler = ngx_http_cache_purge_handler ;
701
702
return ;
702
703
# endif
703
704
default :
704
- r -> write_event_handler = ngx_http_request_empty_handler ;
705
- ngx_http_finalize_request (r , ngx_http_cache_purge_send_response (r ));
705
+ ngx_http_finalize_request (r , NGX_HTTP_INTERNAL_SERVER_ERROR );
706
706
}
707
707
}
708
708
You can’t perform that action at this time.
0 commit comments