bzbarsky%mit.edu 2cf5877984 Switch some internal users of text/xml to application/xml. Bug 247024, patch
by Anne van Kesteren <bug@annevankesteren.nl>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@169953 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-27 19:34:11 +00:00

17 lines
347 B
Perl

#!/usr/bin/perl
print "Content-type: application/xml\n\n";
print "<?xml version=\"1.0\"?>\n";
if ($ENV{'REQUEST_METHOD'} eq 'POST')
{
# Get the input
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
print $buffer;
}
else
{
print "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
print "<body><p>Expected a POST</p></body></html>\n";
}