Skip to content

Commit 583f825

Browse files
committed
Fix #78 again.
1 parent 40717da commit 583f825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/wechat/http_client.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get(path, get_header = {})
2222
def post(path, payload, post_header = {})
2323
request(path, post_header) do |url, header|
2424
params = header.delete(:params)
25-
httprb.headers(header).post(url, params: params, body: payload, ssl_context: ssl_context)
25+
httprb.headers(header).post(url, params: params, body: payload.to_json, ssl_context: ssl_context)
2626
end
2727
end
2828

0 commit comments

Comments
 (0)