Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

Override HTTP-Method

$
0
0
Hello,

is it possible to override the $request_method?
I have the problem that a well known client tries to place a request with method "0". This has its roots in a bug that would take long time to fix.
Is it possible to do something like

if ($request_method = 0){
set $request_method POST;
}

I did a quick try on this but i qot an error that the variable "$request_method" is duplicate.

Kind Regards,

Benjamin

Viewing all articles
Browse latest Browse all 972

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>