Skip to content

Commit f0efb58

Browse files
authored
1 parent 81e5c56 commit f0efb58

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/rspec_api_documentation/client_base.rb

+2-6
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,8 @@ def headers(method, path, params, request_headers)
8787

8888
def record_response_body(response_content_type, response_body)
8989
return nil if response_body.empty?
90-
if response_body.encoding == Encoding::ASCII_8BIT
91-
"[binary data]"
92-
else
93-
formatter = RspecApiDocumentation.configuration.response_body_formatter
94-
return formatter.call(response_content_type, response_body)
95-
end
90+
formatter = RspecApiDocumentation.configuration.response_body_formatter
91+
return formatter.call(response_content_type, response_body)
9692
end
9793

9894
def clean_out_uploaded_data(params, request_body)

0 commit comments

Comments
 (0)