You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FYI, I don't think I want a config switch for binary types. I'm just going to not base 64 encode media types of "text", "xml", or "json". Everything else will be encoded.
Describe the bug
Quarkus version: 2.0.0
Environment: AWS ALB -> Quarkus
When downloading binary content from ALB you will receive a HTTP 502.
See also: aws/serverless-java-container#339
In the following class:
https://github.com/quarkusio/quarkus/blob/main/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpHandler.java
the body is encoded using the MimeEncoder:
responseBuilder.setBody(Base64.getMimeEncoder().encodeToString(baos.toByteArray()));
This should be changed to
responseBuilder.setBody(Base64.getEncoder().encodeToString(baos.toByteArray()));
Don't forget the other way around!
Also it would be very nice to be able to add binary content by a config property.
Now i have to do it myself by using the following code:
The text was updated successfully, but these errors were encountered: