cgi/echo.rb in tap-http-0.1.0 vs cgi/echo.rb in tap-http-0.2.0
- old
+ new
@@ -8,15 +8,15 @@
# Homepage: http://hsc-proteomics.ucdenver.edu/hansen_lab
#
####################################
require 'cgi'
-require 'tap/http/helpers'
+require 'tap/http/utils'
cgi = CGI.new
cgi.out("text/plain") do
begin
- request = Tap::Http::Helpers.parse_cgi_request(cgi)
+ request = Tap::Http::Utils.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