flexirest 1.8.4 → 1.8.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec81f48590a19e143fb865b92c76c4784f1a559380543419d137eb62efc7e1d4
4
- data.tar.gz: 7c76f888375d9a989da6b2facdf73176e136cd3b87ae4f54d2b75c182df094c0
3
+ metadata.gz: e9e147d45f8210b8b7a596e464ccd9b393e5431f2c26ab2d41605684438ee1fa
4
+ data.tar.gz: e1863f372a30873513c85c7d52c613155fb113048bfa5ddce72fe6bcedbee4c5
5
5
  SHA512:
6
- metadata.gz: dc6a8378e3486a4f829e4d240395de3312325ba2bac0ab77dd9e730171c208e1109d6106d9109e0aa95586727c0508a22a8d6bbcc5bd8b4ebb5835fea0e80703
7
- data.tar.gz: 573e84668b742b1aad8f0678aab3f4cc58e52f2a1b5df5ec2196346df1843e2e3324927d905b3aa7884c9fd9908284785f158a93bedef94e97187cf5a5c1d325
6
+ metadata.gz: 8814388e6cea89a0791cf4cc62904c60534aa66fec5a17c6b3f1d4c8b6dc21f1217b27160754e422acfb73a87336a3a10b8a605d9b1f604976737c52f5ae431b
7
+ data.tar.gz: 22c8ca6ba41e20e79c173bcf02ba4e4fef339a239505d2318a15fd21d9e35ec4396d69b21d96605d4f7549951b873f5e5d21f386f34be7cca6b085fe0526c94e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.8.5
4
+
5
+ Fix:
6
+
7
+ - Array and Hash parameters should not have their fieldname CGI escaped, Rails doesn't like it and the RFC doesn't require it
8
+
3
9
  ## 1.8.4
4
10
 
5
11
  Fix:
@@ -7,7 +7,6 @@
7
7
 
8
8
  require 'rubygems'
9
9
  require 'mime/types'
10
- require 'cgi'
11
10
 
12
11
  module Flexirest
13
12
  module Multipart
@@ -58,7 +57,7 @@ module Flexirest
58
57
  end
59
58
 
60
59
  def to_multipart
61
- return "Content-Disposition: form-data; name=\"#{CGI::escape(k)}\"\r\n\r\n#{v}\r\n"
60
+ return "Content-Disposition: form-data; name=\"#{k}\"\r\n\r\n#{v}\r\n"
62
61
  end
63
62
  end
64
63
 
@@ -73,7 +72,7 @@ module Flexirest
73
72
 
74
73
  def to_multipart
75
74
  mime_type = MIME::Types.type_for(filename)[0] || MIME::Types["application/octet-stream"][0]
76
- return "Content-Disposition: form-data; name=\"#{CGI::escape(k)}\"; filename=\"#{ filename }\"\r\n" +
75
+ return "Content-Disposition: form-data; name=\"#{k}\"; filename=\"#{filename}\"\r\n" +
77
76
  "Content-Type: #{ mime_type.simplified }\r\n\r\n#{ content }\r\n"
78
77
  end
79
78
  end
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.8.4"
2
+ VERSION = "1.8.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexirest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries