I have a CGI script that outputs the following to stdout:
print "Status: 302 Redirect\n";
print "Server: Apache-Coyote/1.1\n";
print "Location: $redirect\n";
print "Content-Length: 0\n";
print "Date: $date\n\n";
Where $ redirect and $ date are reasonable values. In fact, the uploaded Apache2 also includes the Content-Type: (text / plain) header. I commented on DefaultType in the server configuration file.
I am trying to debug a downstream problem that occurs when sending a Content-Type: header. So, what magic spell needs to be done so that Apache2 does not add a content type header?
source
share