Skip to content

Instantly share code, notes, and snippets.

@biot023
Created February 10, 2010 22:14
Show Gist options
  • Save biot023/300910 to your computer and use it in GitHub Desktop.
Save biot023/300910 to your computer and use it in GitHub Desktop.
----------- vendor/gems/troelskn-handsoap-0.5.7/lib/handsoap/http.rb -----------
index 7a111fd..d499c5f 100644
@@ -419,7 +419,7 @@ module Handsoap
def self.parse_headers(raw)
header = Hash.new([].freeze)
field = nil
- raw.gsub(/^(\r\n)+|(\r\n)+$/, '').each {|line|
+ raw.gsub(/^(\r\n)+|(\r\n)+$/, '').split( /(\r\n)/ ).each {|line|
case line
when /^([A-Za-z0-9!\#$%&'*+\-.^_`|~]+):\s*(.*?)\s*\z/om
field, value = $1, $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment