Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable text_based?(content_type) #61

Closed
n-epifanov opened this issue Sep 26, 2018 · 1 comment
Closed

Configurable text_based?(content_type) #61

n-epifanov opened this issue Sep 26, 2018 · 1 comment

Comments

@n-epifanov
Copy link

Hi,

I've run into a problem of PDF dumping into log file. What do you think about making it configurable like:

HttpLog.configure do |config|
  config.log_response_filter    = proc do |content_type|
   content_type =~ /^text/ ||
        content_type =~ /^application/ && content_type != 'application/octet-stream'
    end

I'd make a PR.

@n-epifanov
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants