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.
@@ -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, strdup(RSTRING_PTR(header)));
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
@@ -12,7 +12,7 @@ require 'typhoeus/remote_proxy_object'
12
12
  require 'typhoeus/response'
13
13
 
14
14
  module Typhoeus
15
- VERSION = "0.0.20"
15
+ VERSION = "0.0.22"
16
16
 
17
17
  def self.easy_object_pool
18
18
  @easy_objects ||= []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pauldix-typhoeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dix