paypal / mocca

Mocca is a GraphQL client for JVM languages with the goal of being easy to use, flexible and modular.
MIT License
15 stars 14 forks source link

Mocca sends an invalid Content-Encoding (UTF-8) #63

Open crankydillo opened 2 years ago

crankydillo commented 2 years ago

I have seen this happen for the JAX-RS client.

This is almost certainly an issue with the underlying HTTP library. Based on what I see it would be surprising if it didn't affect all the supported clients, but maybe that's not true. I'd think the server we use in functional tests would catch a problem in that area. Regardless, I'll see if I can quickly submit a reproducer.

Even though the fix is likely in HTTP lib, I'm filing here to track for our project.

crankydillo commented 2 years ago

A potential work-around is to register some kind of filter that will manipulate the headers created by the underlying HTTP lib. I think JAX-RS impls typically have that flexibility. Didn't test this theory at all though.