From 7451ef8159decc95245fe193e04bcf3d433095a3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 10 Aug 2009 21:55:38 -0700 Subject: http: rename read_body to filter_body This method is strictly a filter, it does no I/O so "read" is not an appropriate name to give it. --- lib/unicorn/tee_input.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/unicorn/tee_input.rb b/lib/unicorn/tee_input.rb index 07676a6..9f56860 100644 --- a/lib/unicorn/tee_input.rb +++ b/lib/unicorn/tee_input.rb @@ -26,7 +26,7 @@ module Unicorn return(@input = nil) if 0 == @size @input = socket if RAW.size > 0 - PARSER.read_body(DST, RAW) and finalize_input + PARSER.filter_body(DST, RAW) and finalize_input @tmp.write(DST) @tmp.seek(0) end @@ -117,7 +117,7 @@ module Unicorn def tee(length, buf) unless PARSER.body_eof? begin - if PARSER.read_body(buf, @input.readpartial(length, RAW)).nil? + if PARSER.filter_body(buf, @input.readpartial(length, RAW)).nil? @tmp.write(buf) return buf end -- cgit v1.2.3-24-ge0c7