about summary refs log tree commit homepage
path: root/lib/rainbows/response/range.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-07-23 11:34:16 -0700
committerEric Wong <normalperson@yhbt.net>2010-07-23 11:34:16 -0700
commit84ac2eaa8bd16e44420abf660420698f76ad5473 (patch)
treed8e49f5e4622f048db218a506a7e669669a79cb3 /lib/rainbows/response/range.rb
parent8390c8a629647d76b99bd8f3699eae98f3d23a0f (diff)
downloadrainbows-84ac2eaa8bd16e44420abf660420698f76ad5473.tar.gz
rename parse_range => make_range!
It's a destructive method, and it does more than just parsing.
Diffstat (limited to 'lib/rainbows/response/range.rb')
-rw-r--r--lib/rainbows/response/range.rb2
1 files changed, 1 insertions, 1 deletions
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]