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)
689689# endif
690690
691691 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 ;
692696 case NGX_DECLINED :
693697 ngx_http_finalize_request (r , NGX_HTTP_NOT_FOUND );
694698 return ;
695- case NGX_ERROR :
696- ngx_http_finalize_request (r , NGX_HTTP_INTERNAL_SERVER_ERROR );
697- return ;
698699# if (NGX_HAVE_FILE_AIO )
699700 case NGX_AGAIN :
700701 r -> write_event_handler = ngx_http_cache_purge_handler ;
701702 return ;
702703# endif
703704 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 );
706706 }
707707}
708708
You can’t perform that action at this time.
0 commit comments