WebMock is unable to correctly mock server responses that include underscores in the header names because it replaces any underscores with dashes. Is there a specific reason for this behaviour? I checked the HTTP specification and underscores are not an illegal character.
The offending line is here:
|
[name.to_s.split(/_|-/).map { |segment| segment.capitalize }.join("-"), |
WebMock is unable to correctly mock server responses that include underscores in the header names because it replaces any underscores with dashes. Is there a specific reason for this behaviour? I checked the HTTP specification and underscores are not an illegal character.
The offending line is here:
webmock/lib/webmock/util/headers.rb
Line 10 in 6b5374c