mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 20:12:39 +00:00
[DIVA] Add missing base64
This commit is contained in:
parent
d316b08abb
commit
29a64f490e
2
pom.xml
2
pom.xml
@ -10,7 +10,7 @@
|
||||
</parent>
|
||||
<groupId>icu.samnya</groupId>
|
||||
<artifactId>aqua</artifactId>
|
||||
<version>0.0.9-RELEASE</version>
|
||||
<version>0.0.9a-RELEASE</version>
|
||||
<name>Aqua Server</name>
|
||||
<description>A multipurpose game server</description>
|
||||
|
||||
|
||||
@ -43,6 +43,7 @@ public class DivaCompressionFilter extends OncePerRequestFilter {
|
||||
filterChain.doFilter(requestWrapper, responseWrapper);
|
||||
byte[] respSrc = responseWrapper.toByteArray();
|
||||
byte[] respResult = Compression.compress(respSrc);
|
||||
respResult = Base64.getMimeEncoder().encode(respResult);
|
||||
|
||||
|
||||
response.setContentLength(respResult.length);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user