Skip to content

Commit

Permalink
Another fix, not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Jan 10, 2016
1 parent 596dac9 commit 16bb4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wechat/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def post_file(path, file, post_header = {})
def request(path, header = {}, &_block)
url = "#{header.delete(:base) || base}#{path}"
as = header.delete(:as)
header.merge!(accept: :json)
header.merge!('Accept' => 'application/json')
response = yield(url, header)

fail "Request not OK, response status #{response.status}" if response.status != 200
Expand Down

0 comments on commit 16bb4c4

Please sign in to comment.