Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Be a little bit smarted about appending existing values.

  • Loading branch information...
commit bad7ac947319efb6eb7781fd07588986cf22c7bd 1 parent 0aafd90
@clowder authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rack/dont_mess_with_my_js.rb
View
2  lib/rack/dont_mess_with_my_js.rb
@@ -7,7 +7,7 @@ def initialize(app)
def call(env)
status, headers, body = @app.call(env)
- headers['Cache-Control'] = "no-transform; #{ headers['Cache-Control'] }"
+ headers['Cache-Control'] = ['no-transform', headers['Cache-Control']].compact.join(',')
[status, headers, body]
end
Please sign in to comment.
Something went wrong with that request. Please try again.