Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankFang committed Feb 25, 2020
1 parent 81e5c56 commit 0cffd97
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)

This comment has been minimized.

Copy link
@hehe1111

hehe1111 Jul 12, 2023

zipmark#456 (comment)

试了下,这个解决方法也可以,只需要加个文件就行,不需要改源码

end

def clean_out_uploaded_data(params, request_body)
Expand Down

1 comment on commit 0cffd97

@FrankFang
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just disabled [binary data]

Please sign in to comment.