lib/m2r/request/base.rb in m2r-1.0.0 vs lib/m2r/request/base.rb in m2r-2.0.0
- old
+ new
@@ -2,12 +2,10 @@
# Logic for typical Mongrel2 request with no fancy features such as
# async upload
#
# @private
module Base
- MONGREL2_BASE_HEADERS = %w(pattern method path query url_scheme).map(&:freeze).freeze
-
# @return [StringIO] Request body encapsulated in IO compatible object
# @api public
def body_io
@body_io ||= begin
b = StringIO.new(body)
@@ -18,15 +16,9 @@
# @return [nil] Free external resources such as files or sockets
# @api public
def free!
body_io.close
- end
-
- protected
-
- def mongrel_headers
- MONGREL2_BASE_HEADERS
end
end
end