When the client sends a compression header to a module and the module supports the compression header, then it will send the data back through Okapi compressed. When mod-aes receives the data, it does not decompress the body, so the compressed JSON is added as the AES message body which is not useful.
Compression header example:
mod-aes output:
To fix this, we should add compression support to the Vert.x HttpServer object via HttpServerOptions with setCompressionSupported(true) set.
When the client sends a compression header to a module and the module supports the compression header, then it will send the data back through Okapi compressed. When mod-aes receives the data, it does not decompress the body, so the compressed JSON is added as the AES message body which is not useful.
Compression header example:
mod-aes output:
To fix this, we should add compression support to the Vert.x
HttpServer
object viaHttpServerOptions
withsetCompressionSupported(true)
set.See: HttpServerOptions.setCompressionSupported(boolean)