lib/ezid/requests/request.rb in ezid-client-0.13.0 vs lib/ezid/requests/request.rb in ezid-client-1.0.0

- old
+ new

@@ -40,11 +40,11 @@ # @param client [Ezid::Client] the client def initialize(client, *args) @client = client super build_request - customize_request + set_content_type("text/plain", charset: "UTF-8") end # Executes the request and returns the response # @return [Ezid::Response] the response def execute @@ -93,13 +93,9 @@ connection.start do |conn| add_authentication if authentication_required? add_metadata if has_metadata? conn.request(__getobj__) end - end - - def customize_request - set_content_type("text/plain", charset: "UTF-8") end def build_request self.class.http_method.new(uri) end