aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2008-11-02 20:41:28 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2008-11-02 20:41:28 +0100
commit3c1d48f5da7f1af8523fe85885c0ec9959a6317c (patch)
tree98f555e142185b3ca6e42bbfc0816718d8a32be4
parenta618c050e2694f4ea437c5583d8dc763e4bd8780 (diff)
using cgi.out instead of puts
-rwxr-xr-xatom.cgi5
1 files changed, 1 insertions, 4 deletions
diff --git a/atom.cgi b/atom.cgi
index 0522a18..33c6280 100755
--- a/atom.cgi
+++ b/atom.cgi
@@ -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 }