From 28a4cbd514836ffc427f60dcefb683db242e5bb2 Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Wed, 15 Jun 2016 09:42:23 -0700 Subject: [PATCH] Version Bump v2.1.2: Typo in 2.1.1 fix --- CHANGELOG.md | 4 ++++ lib/ruby_http_client.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61478ea..01e8a77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [2.1.2] - 2016-06-14 +### Fix +- Typo in 2.1.1 fix + ## [2.1.1] - 2016-06-10 ### Fix - 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 diff --git a/lib/ruby_http_client.rb b/lib/ruby_http_client.rb index 3b3741e..a54493b 100644 --- a/lib/ruby_http_client.rb +++ b/lib/ruby_http_client.rb @@ -150,7 +150,7 @@ def build_request(name, args) request.body = @request_body.to_json if @request_body if request.body request['Content-Type'] = 'application/json' - elsif !request.body and (name = "post") + elsif !request.body and (name == "post") request['Content-Type'] = '' end make_request(http, request)