We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a0c41 commit 0551b95Copy full SHA for 0551b95
lib/rspec_api_documentation/curl.rb
@@ -69,7 +69,7 @@ def format_header(header)
69
end
70
71
def format_full_header(header, value)
72
- formatted_value = value ? value.gsub(/"/, "\\\"") : ''
+ formatted_value = value ? value.gsub(/"/, "\\\"") : '' unless value.is_a?(Numeric)
73
"#{format_header(header)}: #{formatted_value}"
74
75
0 commit comments