Iets betere autodetext van HTTP_CONTENT_TYPE (door niemand gebruikt volgens mij)
svn path=/Website/branches/v2019.1/; revision=41956
This commit is contained in:
@@ -201,7 +201,7 @@ api2_rest = {
|
||||
{
|
||||
if (inputformat == "auto")
|
||||
{
|
||||
var contenttype = String(Request.ServerVariables("HTTP_CONTENT_TYPE")).split(",")[0]; // Altijd alleen eerste bekijken
|
||||
var contenttype = String(Request.ServerVariables("HTTP_CONTENT_TYPE")).split(";")[0]; // "text/xml; charset=utf-8", alleen de mimetype willen we
|
||||
switch (contenttype.toLowerCase())
|
||||
{
|
||||
case "application/xml":
|
||||
|
||||
Reference in New Issue
Block a user