From 45754cac01c1b397fcf7f90802427add56406c8f Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Thu, 16 Aug 2018 13:23:08 +0200 Subject: [PATCH] fix content type for xml/put.pl --- xml-db/put.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xml-db/put.pl b/xml-db/put.pl index b564bd5..2950c74 100755 --- a/xml-db/put.pl +++ b/xml-db/put.pl @@ -31,8 +31,11 @@ if (defined $ENV{'QUERY_STRING'}) { @request = split("&",$ENV{'QUERY_STRING'}); unless ($server =~ /HTTPi/i) { print "Content-type: text/html\n\n"; - } + } else { + &htsponse(200, "OK"); + print "Content-type: text/html; charset=utf-8\r\n\r\n"; } +} else { $request[0] = ""; #Dummy entry to run foreach } -- 2.43.0