Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zlib::DataError (unknown compression method) #115

Open
Diyilou opened this issue Jul 8, 2021 · 2 comments
Open

Zlib::DataError (unknown compression method) #115

Diyilou opened this issue Jul 8, 2021 · 2 comments

Comments

@Diyilou
Copy link

Diyilou commented Jul 8, 2021

微信支付遇到 Zlib::DataError (unknown compression method) 求解决方案!

@jancnzhangmin
Copy link

RestClient::Request.execute(
  {
    method: :post,
    url: url,
    payload: payload,
    headers: { content_type: 'application/xml', accept_encoding: 'none' }
  }.merge(options)
)

你试试修改插件,RestClient的headers加上accept_encoding: 'none',我就是这么解决的

@jasl
Copy link
Owner

jasl commented Jul 8, 2021

#113 这里他们有讨论

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants