Curb::Easy#http_post & Curb::Easy#http_put w/o arguments #71

Merged
1 commit merged into from Jan 12, 2011

Projects

None yet

2 participants

@eugenebolshakov
Contributor

It's not quite clear from the curb docs, but it's possible to use Curb::Easy#http_post & Curb::Easy#http_put methods without arguments (by setting post_body or put_data beforehand). In the current webmock implementation the data argument is mandatory and this patch makes it optional as it is in curb.

@socialpaths

Thanks Eugene! Your changes are now released in version 1.6.2.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment