Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing elif for CURLOPT_ENCODING.

  • Loading branch information...
commit f8726f4f7a54e9ad2427e8136e623af6c836649b 1 parent 859c612
@juanger juanger authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ext/patron/session_ext.c
View
2  ext/patron/session_ext.c
@@ -270,7 +270,7 @@ static int each_http_header(VALUE header_key, VALUE header_value, VALUE self) {
if (rb_funcall(value, rb_intern("include?"), 1, rb_str_new2("gzip"))) {
#ifdef CURLOPT_ACCEPT_ENCODING
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "gzip");
- #elif CURLOPT_ENCODING
+ #elif defined CURLOPT_ENCODING
curl_easy_setopt(curl, CURLOPT_ENCODING, "gzip");
#else
rb_raise(rb_eArgError,
Please sign in to comment.
Something went wrong with that request. Please try again.