@@ -238,10 +238,6 @@ ngx_http_fastcgi_cache_purge_handler(ngx_http_request_t *r)
238
238
{
239
239
ngx_http_fastcgi_loc_conf_t * flcf ;
240
240
241
- if (!(r -> method & (NGX_HTTP_GET |NGX_HTTP_HEAD |NGX_HTTP_DELETE ))) {
242
- return NGX_HTTP_NOT_ALLOWED ;
243
- }
244
-
245
241
flcf = ngx_http_get_module_loc_conf (r , ngx_http_fastcgi_module );
246
242
247
243
return ngx_http_cache_purge_handler (r , flcf -> upstream .cache -> data ,
@@ -354,10 +350,6 @@ ngx_http_proxy_cache_purge_handler(ngx_http_request_t *r)
354
350
{
355
351
ngx_http_proxy_loc_conf_t * plcf ;
356
352
357
- if (!(r -> method & (NGX_HTTP_GET |NGX_HTTP_HEAD |NGX_HTTP_DELETE ))) {
358
- return NGX_HTTP_NOT_ALLOWED ;
359
- }
360
-
361
353
plcf = ngx_http_get_module_loc_conf (r , ngx_http_proxy_module );
362
354
363
355
return ngx_http_cache_purge_handler (r , plcf -> upstream .cache -> data ,
@@ -443,10 +435,6 @@ ngx_http_scgi_cache_purge_handler(ngx_http_request_t *r)
443
435
{
444
436
ngx_http_scgi_loc_conf_t * slcf ;
445
437
446
- if (!(r -> method & (NGX_HTTP_GET |NGX_HTTP_HEAD |NGX_HTTP_DELETE ))) {
447
- return NGX_HTTP_NOT_ALLOWED ;
448
- }
449
-
450
438
slcf = ngx_http_get_module_loc_conf (r , ngx_http_scgi_module );
451
439
452
440
return ngx_http_cache_purge_handler (r , slcf -> upstream .cache -> data ,
@@ -537,10 +525,6 @@ ngx_http_uwsgi_cache_purge_handler(ngx_http_request_t *r)
537
525
{
538
526
ngx_http_uwsgi_loc_conf_t * ulcf ;
539
527
540
- if (!(r -> method & (NGX_HTTP_GET |NGX_HTTP_HEAD |NGX_HTTP_DELETE ))) {
541
- return NGX_HTTP_NOT_ALLOWED ;
542
- }
543
-
544
528
ulcf = ngx_http_get_module_loc_conf (r , ngx_http_uwsgi_module );
545
529
546
530
return ngx_http_cache_purge_handler (r , ulcf -> upstream .cache -> data ,
0 commit comments