lib/async/http/protocol/http1/server.rb in async-http-0.55.0 vs lib/async/http/protocol/http1/server.rb in async-http-0.56.0

- old
+ new

@@ -62,11 +62,11 @@ response = yield(request, self) return if @stream.nil? or @stream.closed? if response - trailers = response.headers.trailers! + trailer = response.headers.trailer! write_response(@version, response.status, response.headers) body = response.body @@ -93,10 +93,10 @@ version = request.version request = nil unless body response = nil - write_body(version, body, head, trailers) + write_body(version, body, head, trailer) end else # If the request failed to generate a response, it was an internal server error: write_response(@version, 500, {}) write_body(request.version, nil)