Open formoon opened 3 years ago
I think better method is change http::HeaderValueData 's tokens to ordered set, then the encoder name send from browser ranked first will be preferred.
Hey @formoon ,
Thanks for reporting this issue.
I think better method is change http::HeaderValueData 's tokens to ordered set, then the encoder name send from browser ranked first will be preferred.
Yes, I also think that something like this (storing tokens order in addition to existing info) would be a better solution.
I tried oatpp-zlib, this module works, but the effect is not good. Mainly in some browsers, such as chrome, when gzip encoding is preferred to send requests, oatpp still uses deflate plain text to respond, and gzip encoding is not preferred. I simply made some changes to make gzip the best choice when supported by the browser. Now it can work when tested with safari/chrome. But the modification method is awkward and unsafe. I hope to see the official improvement in the next version.
oatpp/oatpp/src/oatpp/web/protocol/http/encoding/ProviderCollection.hpp:
oatpp/oatpp/src/oatpp/web/protocol/http/utils/CommunicationUtils.cpp:
last in AppComponent.hpp: