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

Padrino cache #2075

Closed
davinciRor opened this Issue Sep 8, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@davinciRor

davinciRor commented Sep 8, 2016

BUG

Current behavior
If we use cache we lose charset in content-type.

How reproduce
1.

module Test
  class App < Padrino::Application
    register Padrino::Mailer
    register Padrino::Helpers
    enable :sessions

    register Padrino::Cache
    enable :caching

    get '/api', cache: true do
      content_type :json, charset: 'utf-8'

      expires 15

      "{cache: 'remove_charset'}"
    end
  end
end
  1. Sent first time

2016-09-08 15 06 57

1. Sent second time

2016-09-08 15 07 10

* Expected behavior*

When we use cache, doesn`t remove charset from header content type

** Versions of Ruby, Padrino, Sinatra, Rack, OS **
ruby (2.3.1)
padrino (0.13.3.2)
sinatra (>= 1.4.6)
rack (1.6.4)
OS X yosemite

@ujifgc ujifgc added the bug label Sep 8, 2016

@ujifgc ujifgc closed this in 6ab2b11 Sep 8, 2016

@ujifgc

This comment has been minimized.

Show comment
Hide comment
@ujifgc

ujifgc Sep 8, 2016

Member

Thank you for your report.

Member

ujifgc commented Sep 8, 2016

Thank you for your report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment