Skip to content

Commit

Permalink
Version Bump v2.1.2: Typo in 2.1.1 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingserious committed Jun 15, 2016
1 parent 2004a23 commit 28a4cbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_http_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 28a4cbd

Please sign in to comment.