Created
February 10, 2010 22:14
-
-
Save biot023/300910 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------- 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