ruby_http_client 2.1.0 → 2.1.1

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
  SHA1:
3
- metadata.gz: 3c64bba37084381080a33b1097bac58bdfabb94b
4
- data.tar.gz: f45e86df95ac5b53d5f283223cfdfd15802c87b9
3
+ metadata.gz: af7a6c1d4e4b153fb61568db42e47b8e9dbe6e52
4
+ data.tar.gz: d35dd928c20db5e91efc355bb7a879d8d9c62ae5
5
5
  SHA512:
6
- metadata.gz: 65197b2e4d2d41b798542de1334902bfa373c1232db2f8ababfd133baa6eb6e4eef804e7187925f258761d05c4f3286bfebf2cc68fd3dd9c4dd06f30ce5b3671
7
- data.tar.gz: eaf33a779c92d1c1595ef5f232bbb96b33845283e024f80610282e943efb9437154d60ec107e74a5e0441237439a305d75ca2e4bea507e8f818a069d8b5bdf01
6
+ metadata.gz: 046bec101d9e671703237f289a8678f8a663b94386642224eccb72f4d20792d25e17d7200fa806405c5f72d45ba96db53d39e2224e7d702c2b91bac3348f7a65
7
+ data.tar.gz: 11c725414d38c767f6d52b01cfd4f19e3b2ce414c0b14208ef329b928010fc339ea023b7e803c54b76498aae28c60e786d5480ad820ac58b03ec6d68fcd90603
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [2.1.1] - 2016-06-10
7
+ ### Fix
8
+ - Deal with an edge case where when you send a POST with no body, net/http sets the content type to application/x-www-form-urlencoded
9
+
6
10
  ## [2.1.0] - 2016-06-10
7
11
  ### Added
8
12
  - Automatically add Content-Type: application/json when there is a request body
@@ -150,6 +150,8 @@ module SendGrid
150
150
  request.body = @request_body.to_json if @request_body
151
151
  if request.body
152
152
  request['Content-Type'] = 'application/json'
153
+ elsif !request.body and (name = "post")
154
+ request['Content-Type'] = ''
153
155
  end
154
156
  make_request(http, request)
155
157
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'ruby_http_client'
7
- spec.version = '2.1.0'
7
+ spec.version = '2.1.1'
8
8
  spec.authors = ['Elmer Thomas']
9
9
  spec.email = 'dx@sendgrid.com'
10
10
  spec.summary = 'A simple REST client'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_http_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elmer Thomas