Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body is set twice #14

Open
t6d opened this issue Dec 22, 2015 · 0 comments
Open

Body is set twice #14

t6d opened this issue Dec 22, 2015 · 0 comments

Comments

@t6d
Copy link
Owner

t6d commented Dec 22, 2015

Ensure that when constructing a request the body is not set twice.

# File lib/net/http.rb, line 1908
def set_body_internal(str)   #:nodoc: internal use only
  raise ArgumentError, "both of body argument and HTTPRequest#body set" if str and (@body or @body_stream)
  self.body = str if str
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant