move button, accept compression under threshold

This commit is contained in:
creeper123123321 2021-12-27 19:49:20 -03:00
parent c1846b9a64
commit 98f8417371
2 changed files with 4 additions and 4 deletions

View File

@ -113,9 +113,7 @@ public class CompressionCodec extends MessageToMessageCodec<ByteBuf, ByteBuf> {
return; return;
} }
if (claimedUncompressedSize < threshold) { // 1.18 clients now accept compressed packets under threshold...?
throw new DecoderException("Badly compressed packet - size of " + claimedUncompressedSize + " is below server threshold of " + threshold);
}
if (claimedUncompressedSize > UNCOMPRESSED_CAP) { if (claimedUncompressedSize > UNCOMPRESSED_CAP) {
throw new DecoderException("Badly compressed packet - size of " + claimedUncompressedSize + " is larger than maximum of " + UNCOMPRESSED_CAP); throw new DecoderException("Badly compressed packet - size of " + claimedUncompressedSize + " is larger than maximum of " + UNCOMPRESSED_CAP);
} }

View File

@ -91,7 +91,6 @@ script-src 'self' https://*.cloudflare.com/ https://alcdn.msauth.net/ https://*.
<hr> <hr>
<p>Listening to frontend logins from: <span id="listening"></span></p> <p>Listening to frontend logins from: <span id="listening"></span></p>
<div id="actions"> <div id="actions">
<button id="en_notific" type="button" class="btn btn-primary">Enable notifications</button>
<button id="listen_continue" type="button" class="btn btn-primary">Listen to </button> <button id="listen_continue" type="button" class="btn btn-primary">Listen to </button>
<button id="listen_premium" type="button" class="btn btn-primary">Listen to premium login</button> <button id="listen_premium" type="button" class="btn btn-primary">Listen to premium login</button>
<button id="listen_offline" type="button" class="btn btn-primary">Listen to offline mode login</button> <button id="listen_offline" type="button" class="btn btn-primary">Listen to offline mode login</button>
@ -114,6 +113,9 @@ script-src 'self' https://*.cloudflare.com/ https://alcdn.msauth.net/ https://*.
<button class="btn btn-primary" type="submit">Save</button> <button class="btn btn-primary" type="submit">Save</button>
</form> </form>
</div> </div>
<div class="mb-3">
<button id="en_notific" type="button" class="btn btn-primary">Enable browser notifications</button>
</div>
</div> </div>
<div aria-labelledby="accounts-tab" class="tab-pane fade" id="accounts"> <div aria-labelledby="accounts-tab" class="tab-pane fade" id="accounts">