Skip to content

Commit 963f9ea

Browse files
Version Bump v2.1.3: Logic error
1 parent d3a21af commit 963f9ea

File tree

3 files changed

+6
-2
lines changed

3 files changed

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

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.to_s == "post")
154154
request['Content-Type'] = ''
155155
end
156156
make_request(http, request)

ruby_http_client.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
44

55
Gem::Specification.new do |spec|
66
spec.name = 'ruby_http_client'
7-
spec.version = '2.1.2'
7+
spec.version = '2.1.3'
88
spec.authors = ['Elmer Thomas']
99
spec.email = '[email protected]'
1010
spec.summary = 'A simple REST client'

0 commit comments

Comments
 (0)