-
-
Notifications
You must be signed in to change notification settings - Fork 202
Closed
Description
When using Netty, file assets don't work when using HTTPS.
The problem is in the NettyResponse, on this line:
ctx.write(new DefaultFileRegion(channel, offset, count));
The DefaultFileRegion will be sent to the pipeline and first passes through the HttpObjectEncoder. This one will not do any conversion on a FileRegion.
Next the message is passed on to the SslHandler. This one checks if the message is a ByteBuf and otherwise simply returns failure.
Thus, only the header is sent out for assets over HTTPS.