Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ext/rack/files/config.ru
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# a config.ru, for use with every rack-compatible webserver.
# SSL needs to be handled outside this, though.

# prevent error messages like "invalid byte sequence in US-ASCII"
if RUBY_VERSION >= "1.9"
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
end

# if puppet is not in your RUBYLIB:
# $LOAD_PATH.unshift('/opt/puppet/lib')

Expand Down