diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-11-02 20:41:28 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-11-02 20:41:28 +0100 |
commit | 3c1d48f5da7f1af8523fe85885c0ec9959a6317c (patch) | |
tree | 98f555e142185b3ca6e42bbfc0816718d8a32be4 /atom.cgi | |
parent | a618c050e2694f4ea437c5583d8dc763e4bd8780 (diff) |
using cgi.out instead of puts
Diffstat (limited to '')
-rwxr-xr-x | atom.cgi | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -11,8 +11,6 @@ def readhistory dir log.collect!{|r,t,c| [r.to_i,DateTime.parse(t),c]} end - - cgi = CGI.new SITEURL = "http://#{cgi.server_name}#{cgi.script_name.gsub(/atom.cgi$/,"")}" @@ -77,5 +75,4 @@ else end -puts "Content-type: application/atom+xml\n\n" -puts feed.to_xml +cgi.out("type" => "application/atom+xml"){ feed.to_xml } |