mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:20:57 -06:00
DEV: Fix another form of sending data in ember-cli (#15079)
This commit is contained in:
parent
8fd10e6414
commit
9380c1273e
@ -317,16 +317,15 @@ to serve API requests. For example:
|
||||
return true;
|
||||
}
|
||||
|
||||
if (
|
||||
request.get("Content-Type") &&
|
||||
request.get("Content-Type").includes("application/x-www-form-urlencoded")
|
||||
) {
|
||||
return true;
|
||||
const contentType = request.get("Content-Type");
|
||||
if (!contentType) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
request.get("Content-Type") &&
|
||||
request.get("Content-Type").includes("multipart/form-data")
|
||||
contentType.includes("application/x-www-form-urlencoded") ||
|
||||
contentType.includes("multipart/form-data") ||
|
||||
contentType.includes("application/json")
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user