Skip to content

Instantly share code, notes, and snippets.

@vangberg
Created August 7, 2009 20:16
Show Gist options
  • Save vangberg/164143 to your computer and use it in GitHub Desktop.
Save vangberg/164143 to your computer and use it in GitHub Desktop.
class SetContentTypeCharSet
def initialize(app)
@app = app
end
def call(env)
status, headers, body = @app.call(env)
headers['Content-Type'] += "; charset=UTF-8"
[status, headers, body]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment