Skip to content

Commit 28a4cbd

Browse files
Version Bump v2.1.2: Typo in 2.1.1 fix
1 parent 2004a23 commit 28a4cbd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [2.1.2] - 2016-06-14
7+
### Fix
8+
- Typo in 2.1.1 fix
9+
610
## [2.1.1] - 2016-06-10
711
### Fix
812
- 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

lib/ruby_http_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def build_request(name, args)
150150
request.body = @request_body.to_json if @request_body
151151
if request.body
152152
request['Content-Type'] = 'application/json'
153-
elsif !request.body and (name = "post")
153+
elsif !request.body and (name == "post")
154154
request['Content-Type'] = ''
155155
end
156156
make_request(http, request)

0 commit comments

Comments
 (0)