lib/esplanade/request/raw.rb in esplanade-1.5.0 vs lib/esplanade/request/raw.rb in esplanade-1.6.0
- old
+ new
@@ -13,15 +13,19 @@
def path
@path ||= @env['PATH_INFO']
end
+ def raw_path
+ @raw_path ||= "#{@env['PATH_INFO']}/#{@env['QUERY_STRING']}"
+ end
+
def body
@body ||= Body.new(self, @env)
end
def content_type
- @content_type ||= @env['CONTENT_TYPE']
+ @content_type ||= @env['CONTENT_TYPE'].to_s.split(';').first
end
end
end
end