1
0
Fork 0

Clean Sinatra ENVs

This commit is contained in:
Alex Kotov 2023-05-03 16:06:48 +04:00
parent be16408261
commit fa9e28fd66
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 3 additions and 0 deletions

View File

@ -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