Skip to content

Commit

Permalink
Cleanup per #88
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Feb 20, 2015
1 parent 2ed3b78 commit 1bbd4f1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/lotus/action/head.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@ module Head
HTTP_STATUSES_WITHOUT_BODY = Set.new((100..199).to_a << 204 << 205 << 304).freeze


# Entity headers that by RFC are permitted
# Entity headers allowed in blank body responses, according to
# RFC 2616 - Section 10 (HTTP 1.1).
#
# "The response MAY include new or updated metainformation in the form
# of entity-headers".
#
# @since x.x.x
# @api private
#
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.5
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html
ENTITY_HEADERS = {
'Allow' => true,
'Content-Encoding' => true,
Expand Down

0 comments on commit 1bbd4f1

Please sign in to comment.