mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Added workaround for Firefox not sending LINK in uppercase what then is denied by nginx.
More info: http://stackoverflow.com/questions/9645037/nginx-rejects-custom-http-methods-if-not-all-upper-case
This commit is contained in:
parent
c6741d5710
commit
4fa50ebe53
@ -386,6 +386,12 @@
|
||||
endpoint = $('#api_endpoint').val();
|
||||
}
|
||||
|
||||
// Workaround for Firefox bug and a thereby resulting nginx incompatibility
|
||||
if (method == "LINK") {
|
||||
method = "POST";
|
||||
params._method = "LINK";
|
||||
}
|
||||
|
||||
// prepare final parameters
|
||||
var body = {};
|
||||
if(bodyFormat == 'json' && method != 'GET') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user