Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yyzclyang authored Jul 26, 2020
1 parent 81e5c56 commit f0efb58
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/rspec_api_documentation/client_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,8 @@ def headers(method, path, params, request_headers)

def record_response_body(response_content_type, response_body)
return nil if response_body.empty?
if response_body.encoding == Encoding::ASCII_8BIT
"[binary data]"
else
formatter = RspecApiDocumentation.configuration.response_body_formatter
return formatter.call(response_content_type, response_body)
end
formatter = RspecApiDocumentation.configuration.response_body_formatter
return formatter.call(response_content_type, response_body)
end

def clean_out_uploaded_data(params, request_body)
Expand Down

0 comments on commit f0efb58

Please sign in to comment.