Skip to content

Commit

Permalink
Memoize HttpResponseHeader#status
Browse files Browse the repository at this point in the history
  • Loading branch information
ianejames committed Mar 4, 2013
1 parent 322f227 commit 709b7a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/em-http/http_header.rb
Expand Up @@ -25,7 +25,7 @@ def last_modified

# HTTP response status as an integer
def status
Integer(http_status) rescue 0
@status ||= Integer(http_status) rescue 0
end

# Length of content as an integer, or nil if chunked/unspecified
Expand Down

0 comments on commit 709b7a9

Please sign in to comment.