Skip to content

Commit

Permalink
fix(http-stream): Use Content-Type header key as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
pandomic committed May 2, 2019
1 parent 4c2f627 commit da08f69
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.1.2] - 2019-05-02
### Added
- HTTPS targets support

## [0.1.3] - 2019-05-02
### Changed
- `Content-type` header for the HTTP streams is set as a string to fix doubled content-type issue
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
active_record_streams (0.1.2)
active_record_streams (0.1.3)
activerecord (~> 4.2.10)
aws-sdk (~> 2.11.9)

Expand Down
2 changes: 1 addition & 1 deletion lib/active_record_streams/publishers/http_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def uri
end

def headers
{ 'Content-Type': DEFAULT_CONTENT_TYPE }.merge(@headers)
{ 'Content-Type' => DEFAULT_CONTENT_TYPE }.merge(@headers)
end

def assert_response_code(response)
Expand Down
2 changes: 1 addition & 1 deletion lib/active_record_streams/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ActiveRecordStreams
VERSION = '0.1.2'
VERSION = '0.1.3'
end
2 changes: 1 addition & 1 deletion lib/active_record_streams/version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

RSpec.describe ActiveRecordStreams::VERSION do
it 'has a version number' do
expect(subject).to eq('0.1.2')
expect(subject).to eq('0.1.3')
end
end

0 comments on commit da08f69

Please sign in to comment.