From: Jan Michel Date: Thu, 16 Aug 2018 11:23:08 +0000 (+0200) Subject: fix content type for xml/put.pl X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=45754cac01c1b397fcf7f90802427add56406c8f;p=daqtools.git fix content type for xml/put.pl --- 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 }