Clean Sinatra ENVs
This commit is contained in:
parent
be16408261
commit
fa9e28fd66
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ ENV.delete 'RACK_MULTIPART_FILE_LIMIT'
|
|||
ENV.delete 'RACK_MULTIPART_PART_LIMIT'
|
||||
ENV.delete 'RACK_MULTIPART_TOTAL_PART_LIMIT'
|
||||
|
||||
# Clean Sinatra ENVs
|
||||
ENV.delete 'PORT'
|
||||
|
||||
# Freeze well-known constants
|
||||
ARGV.each(&:freeze).freeze
|
||||
ENV.each_key(&:freeze).each_value(&:freeze) # ENV itself can't be frozen
|
||||
|
|
Loading…
Reference in a new issue