Skip to content

Commit

Permalink
Fix issue taf2#133
Browse files Browse the repository at this point in the history
easy.post_body = nil sets CURLOPT_HTTPGET to 1
  • Loading branch information
geronime committed Feb 6, 2013
1 parent 713ae83 commit 86a2764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/curb_easy.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,8 @@ static VALUE ruby_curl_easy_post_body_set(VALUE self, VALUE post_body) {
curl = rbce->curl;

if ( post_body == Qnil ) {
//rbce->postdata_buffer = Qnil;
rb_easy_del("postdata_buffer");
curl_easy_setopt(curl, CURLOPT_HTTPGET, 1);

} else {
if (rb_type(post_body) == T_STRING) {
Expand Down

1 comment on commit 86a2764

@taf2
Copy link

@taf2 taf2 commented on 86a2764 Feb 6, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright thanks!

Please sign in to comment.