Skip to content

Commit

Permalink
Merge pull request #16476 from akshay-vishnoi/doc-changes
Browse files Browse the repository at this point in the history
[ci skip] use "based on" or "based off of"
  • Loading branch information
rafaelfranca committed Aug 12, 2014
2 parents e81f3c2 + 51a759a commit cee28d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/http/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def remote_ip
@remote_ip ||= (@env["action_dispatch.remote_ip"] || ip).to_s
end

# Returns the unique request id, which is based off either the X-Request-Id header that can
# Returns the unique request id, which is based on either the X-Request-Id header that can
# be generated by a firewall, load balancer, or web server or by the RequestId middleware
# (which sets the action_dispatch.request_id environment variable).
#
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/middleware/request_id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module ActionDispatch
# Makes a unique request id available to the action_dispatch.request_id env variable (which is then accessible through
# ActionDispatch::Request#uuid) and sends the same id to the client via the X-Request-Id header.
#
# The unique request id is either based off the X-Request-Id header in the request, which would typically be generated
# The unique request id is either based on the X-Request-Id header in the request, which would typically be generated
# by a firewall, load balancer, or the web server, or, if this header is not available, a random uuid. If the
# header is accepted from the outside world, we sanitize it to a max of 255 chars and alphanumeric and dashes only.
#
Expand Down

0 comments on commit cee28d0

Please sign in to comment.