|No such thing as a small change|
CGI::Application header (typo, heh)by cLive ;-) (Prior)
|on May 23, 2009 at 06:13 UTC||Need Help??|
cLive ;-) has asked for the
wisdom of the Perl Monks concerning the following question:
Scratching my head on this one. My app works fine, except it sends a 500 Internal Server Error status rather than 200 OK.
Content displays fine in the browser. I only noticed it when adding error checking to the client app.
I've stripped it down to a minimal case:
and call the url with query string:?m=testtt
I get a screwed up content-type header back:
If I comment out the header line, the page serves correctly with the text/html content type (but I need text/plain!).
Changing the capitalization of the header name appears to make no difference.
Weird thing is that I have another app on the same server that works correctly, but I can't see what's any different in it.
Any ideas? AM I missing something extremely simple here?
EDIT: as always, writing out this question prods me to find the solution by myself.
I should have used:
The other app wasn't looking at the status header, but had the same issue (now I check).
OK, that's enough for me for today :)