From 84ac2eaa8bd16e44420abf660420698f76ad5473 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 23 Jul 2010 11:34:16 -0700 Subject: rename parse_range => make_range! It's a destructive method, and it does more than just parsing. --- lib/rainbows/response/range.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/response/range.rb') diff --git a/lib/rainbows/response/range.rb b/lib/rainbows/response/range.rb index 4c0d4a1..5d8f01e 100644 --- a/lib/rainbows/response/range.rb +++ b/lib/rainbows/response/range.rb @@ -7,7 +7,7 @@ module Rainbows::Response::Range # This does not support multipart responses (does anybody actually # use those?) +headers+ is always a Rack::Utils::HeaderHash - def parse_range(env, status, headers) + def make_range!(env, status, headers) if 200 == status.to_i && (clen = headers[Content_Length]) && /\Abytes=(\d+-\d*|\d*-\d+)\z/ =~ env[HTTP_RANGE] -- cgit v1.2.3-24-ge0c7