nozlib: add patch

This commit is contained in:
ave 2019-01-25 11:57:16 +03:00
parent aad4591711
commit 0bc36a0738
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B
2 changed files with 27 additions and 0 deletions

20
patches/nozlib/835.patch Normal file
View file

@ -0,0 +1,20 @@
diff -crB -x dist -x build com.discord-835-base/smali/com/discord/gateway/GatewaySocket.smali com.discord-835/smali/com/discord/gateway/GatewaySocket.smali
*** com.discord-835-base/smali/com/discord/gateway/GatewaySocket.smali 2019-01-25 10:57:34.512582250 +0300
--- com.discord-835/smali/com/discord/gateway/GatewaySocket.smali 2019-01-25 11:55:34.384472798 +0300
***************
*** 1033,1039 ****
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
! const-string p1, "/?encoding=json&v=6&compress=zlib-stream"
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
--- 1033,1039 ----
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
! const-string p1, "/?encoding=json&v=6"
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

7
patches/nozlib/README.md Normal file
View file

@ -0,0 +1,7 @@
## DisTok CutTheCord: No zlib-stream Patch
This patch disables zlib-stream field on wss, making it easier to parse it.
#### Available and tested on:
- 8.3.5g