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:
Jos Groot Lipman
2019-04-04 12:30:36 +00:00
parent 76e45a3404
commit 117499aa74

View File

@@ -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":