Permalink
Browse files

Prettified debug output

  • Loading branch information...
1 parent d749482 commit ab3b23664bbcb0b08a317d991aacbc1d2721df19 @troelskn committed Aug 13, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/handsoap/http.rb
@@ -30,10 +30,10 @@ def set_header(key, value)
def inspect
"===============\n" +
"--- Request ---\n" +
- "URI: #{url}\n" +
+ "#{http_method.to_s.upcase} #{url}\n" +
(
if headers.any?
- "---\n" + headers.map { |key,values| values.map {|value| Handsoap::Http.normalize_header_key(key) + ": " + value + "\n" }.join("") }.join("")
+ "---\n" + headers.map { |key,values| values.map {|value| key + ": " + value + "\n" }.join("") }.join("")
else
""
end

0 comments on commit ab3b236

Please sign in to comment.