pauldix-typhoeus 0.0.20 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/typhoeus/typhoeus_easy.c +2 -2
- data/lib/typhoeus.rb +1 -1
- metadata +1 -1
@@ -132,7 +132,7 @@ static VALUE easy_add_header(VALUE self, VALUE header) {
|
|
132
132
|
CurlEasy *curl_easy;
|
133
133
|
Data_Get_Struct(self, CurlEasy, curl_easy);
|
134
134
|
|
135
|
-
curl_easy->headers = curl_slist_append(curl_easy->headers,
|
135
|
+
curl_easy->headers = curl_slist_append(curl_easy->headers, RSTRING_PTR(header));
|
136
136
|
return header;
|
137
137
|
}
|
138
138
|
|
@@ -203,4 +203,4 @@ void init_typhoeus_easy() {
|
|
203
203
|
rb_define_private_method(klass, "easy_add_header", easy_add_header, 1);
|
204
204
|
rb_define_private_method(klass, "easy_escape", easy_escape, 2);
|
205
205
|
rb_define_private_method(klass, "version", version, 0);
|
206
|
-
}
|
206
|
+
}
|
data/lib/typhoeus.rb
CHANGED