lib/protocol/http/response.rb in protocol-http-0.36.0 vs lib/protocol/http/response.rb in protocol-http-0.37.0

- old
+ new

@@ -1,12 +1,12 @@ # frozen_string_literal: true # Released under the MIT License. # Copyright, 2019-2024, by Samuel Williams. -require_relative 'body/buffered' -require_relative 'body/reader' +require_relative "body/buffered" +require_relative "body/reader" module Protocol module HTTP # Represents an HTTP response which can be used both server and client-side. # @@ -139,10 +139,10 @@ # Create a response for the given exception. # # @parameter exception [Exception] The exception to generate the response for. def self.for_exception(exception) - Response[500, Headers['content-type' => 'text/plain'], ["#{exception.class}: #{exception.message}"]] + Response[500, Headers["content-type" => "text/plain"], ["#{exception.class}: #{exception.message}"]] end def as_json(...) { version: @version,