(This seems like more an Apache question than a Ruby question, but ...)
I'm trying to write a simple Ruby script to serve up an xml file (rss).
Apache seems to be doing something weird. Here's the raw content output from
the script to the command line:
Content-type: text/xml
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
The HEX for the gap between "text/xml" and "<!DOC" is just:
0D 0A 0D 0A
(The Ruby for this is simple:
def output_feed
print "Content-type: text/xml\n\n"
print rss_xml
end
)
But here's the header coming from Apache:
HTTP/1.1 200 OK
Date: Thu, 03 Apr 2003 15:07:46 GMT
Server: Apache/2.0.44 (Win32)
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/xml
ff2
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
Notice the 'ff2' inserted in there. Anyone know what the heck that is?
Hex between 'text/xml' and '<!DOC':
0D 0A 0D 0A 66 66 32 0D 0A
Chris
http://clabs.org