mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-02 21:36:14 +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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue