cgi/echo.rb in tap-http-0.0.1 vs cgi/echo.rb in tap-http-0.1.0

- old
+ new

@@ -1,9 +1,9 @@ #!/usr/local/bin/ruby #################################### -# Echos back the HTTP header and parameters as YAML. +# Echos back the HTTP header and parameters as YAML. # # Copyright (c) 2008, Regents of the University of Colorado # Developer: Simon Chiang, Biomolecular Structure Program # Homepage: http://hsc-proteomics.ucdenver.edu/hansen_lab # @@ -12,11 +12,11 @@ require 'cgi' require 'tap/http/helpers' cgi = CGI.new cgi.out("text/plain") do - begin - request = Tap::Http::Helpers.parse_cgi_request(cgi) + begin + request = Tap::Http::Helpers.parse_cgi_request(cgi) request[:headers].to_yaml + request[:params].to_yaml rescue "Error: #{$!.message}\n" + $!.backtrace.join("\n") end \ No newline at end of file