elastic / apm-agent-java

https://www.elastic.co/guide/en/apm/agent/java/current/index.html
Apache License 2.0
567 stars 321 forks source link

Perform charset-aware decoding of request bodies #3726

Closed JonasKunz closed 3 months ago

JonasKunz commented 4 months ago

What does this PR do?

Respects the charset from the Content-Type header when capturing HTTP Client request bodies. Note that it might be possible that the bytes are still not decodeable (e.g. because the content is actually compressed). In that case we fallback to simply casting the bytes to chars.

Checklist