lib/saorin/adapters/servers/reel.rb in saorin-0.1.1 vs lib/saorin/adapters/servers/reel.rb in saorin-0.1.2
- old
+ new
@@ -19,11 +19,11 @@
def process(connection)
while request = connection.request
case request
when ::Reel::Request
- response_body = ''
response_body = process_request(request.body) if request.method.to_s.upcase == 'POST'
+ response_body ||= ''
request.respond :ok, DEFAULT_HEADERS.dup, response_body
end
end
end
end