Skip to content

Commit

Permalink
r\n
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Good committed Jun 17, 2011
1 parent 19d5b0e commit 9c49d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/servloko.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.start(file,port,daemonize)

begin
rackup.write "app = proc do |env|\n"
rackup.write " body = [`ruby #{file}`.chomp]\n"
rackup.write " body = [`ruby #{file}`.chomp.gsub('\r\n','<br/>')]\n"
rackup.write " [200,{'Content-Type' => 'text/html'},body]\n"
rackup.write "end\n"
rackup.write "run app\n"
Expand Down

0 comments on commit 9c49d74

Please sign in to comment.