about summary refs log tree commit homepage
path: root/extras
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-03 02:44:47 +0000
committerEric Wong <e@80x24.org>2016-01-03 02:44:47 +0000
commit6ea85b061e650cfe348ece306a13d568559fb844 (patch)
tree51631b6ac761e512152ba332a60998804580d60f /extras
parentddea1b7e04b7e3475bb615c35e2156c9626b4eac (diff)
downloadyahns-6ea85b061e650cfe348ece306a13d568559fb844.tar.gz
Oops, we need to duplicate our buffer in case the CGI executable
returns just the header :x
Diffstat (limited to 'extras')
-rw-r--r--extras/exec_cgi.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/exec_cgi.rb b/extras/exec_cgi.rb
index 254164a..3091cfb 100644
--- a/extras/exec_cgi.rb
+++ b/extras/exec_cgi.rb
@@ -18,7 +18,7 @@ class ExecCgi
     attr_writer :body_tip
 
     def each
-      buf = @body_tip || ""
+      buf = @body_tip || ''.dup
       if buf.size > 0
         yield buf
       end