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.
2 parents 9201f69 + 52fffd8 commit e4bd4cfCopy full SHA for e4bd4cf
lib/rspec_api_documentation/curl.rb
@@ -69,7 +69,12 @@ def format_header(header)
69
end
70
71
def format_full_header(header, value)
72
- formatted_value = value ? value.gsub(/"/, "\\\"") : ''
+ formatted_value = if value.is_a?(Numeric)
73
+ value
74
+ else
75
+ value ? value.gsub(/"/, "\\\"") : ''
76
+ end
77
+
78
"#{format_header(header)}: #{formatted_value}"
79
80
0 commit comments