Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze a few more string constants #490

Merged
merged 1 commit into from
Mar 6, 2014
Merged
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: 3 additions & 3 deletions lib/puma/const.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class UnsupportedOption < RuntimeError
module Const

PUMA_VERSION = VERSION = "2.8.0".freeze
CODE_NAME = "Sir Edmund Percival Hillary"
CODE_NAME = "Sir Edmund Percival Hillary".freeze

FAST_TRACK_KA_TIMEOUT = 0.2

Expand Down Expand Up @@ -58,7 +58,7 @@ module Const
PUMA_TMP_BASE = "puma".freeze

# Indicate that we couldn't parse the request
ERROR_400_RESPONSE = "HTTP/1.1 400 Bad Request\r\n\r\n"
ERROR_400_RESPONSE = "HTTP/1.1 400 Bad Request\r\n\r\n".freeze

# The standard empty 404 response for bad requests. Use Error4040Handler for custom stuff.
ERROR_404_RESPONSE = "HTTP/1.1 404 Not Found\r\nConnection: close\r\nServer: Puma #{PUMA_VERSION}\r\n\r\nNOT FOUND".freeze
Expand All @@ -69,7 +69,7 @@ module Const
CONTENT_LENGTH = "CONTENT_LENGTH".freeze

# Indicate that there was an internal error, obviously.
ERROR_500_RESPONSE = "HTTP/1.1 500 Internal Server Error\r\n\r\n"
ERROR_500_RESPONSE = "HTTP/1.1 500 Internal Server Error\r\n\r\n".freeze

# A common header for indicating the server is too busy. Not used yet.
ERROR_503_RESPONSE = "HTTP/1.1 503 Service Unavailable\r\n\r\nBUSY".freeze
Expand Down