Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSmartnik committed Feb 11, 2019
1 parent 5c31276 commit e99c6d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/httparty/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def set_basic_auth_from_uri

def encode_text(text, content_type)
TextEncoder.new(
text: text,
text,
content_type: content_type,
assume_utf16_is_big_endian: assume_utf16_is_big_endian
).call
Expand Down
2 changes: 1 addition & 1 deletion lib/httparty/text_encoder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module HTTParty
class TextEncoder
attr_reader :text, :content_type, :assume_utf16_is_big_endian

def initialize(text:, assume_utf16_is_big_endian:, content_type:)
def initialize(text, assume_utf16_is_big_endian:, content_type:)
@text = text
@content_type = content_type
@assume_utf16_is_big_endian = assume_utf16_is_big_endian
Expand Down

0 comments on commit e99c6d0

Please sign in to comment.