mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-28 06:55:36 +00:00
Downgrade okhttp & okio
This commit is contained in:
3 files changed
+8
-8
No files matched your search
@@ -121,15 +121,15 @@ public enum Dependency {
|
||||
OKIO(
|
||||
"com{}squareup{}" + RelocationHelper.OKIO_STRING,
|
||||
RelocationHelper.OKIO_STRING,
|
||||
"2.2.2",
|
||||
"5YyXQGprsROIk3UCmaxjxqoEs4trSerhv8rRpj75uhs=",
|
||||
"1.17.4",
|
||||
"14+sWIRY/AmebILpH+XwN1xnQ0YmRRo6d3csZdnu6Fs=",
|
||||
Relocation.of(RelocationHelper.OKIO_STRING, RelocationHelper.OKIO_STRING)
|
||||
),
|
||||
OKHTTP(
|
||||
"com{}squareup{}" + RelocationHelper.OKHTTP3_STRING,
|
||||
"okhttp",
|
||||
"4.2.2",
|
||||
"UGQYLP9AsQDOV/vzzpheEuOM9EM3JOgbF1wYQ+rsu3U=",
|
||||
"3.14.4",
|
||||
"WMyzdU8VzELfjxaHs7qGMw7ZfH5S5cPoP+ETG4DOPg8=",
|
||||
Relocation.of(RelocationHelper.OKHTTP3_STRING, RelocationHelper.OKHTTP3_STRING),
|
||||
Relocation.of(RelocationHelper.OKIO_STRING, RelocationHelper.OKIO_STRING)
|
||||
),
|
||||
|
||||
@@ -79,7 +79,7 @@ public class BytebinClient extends AbstractHttpClient {
|
||||
* @throws IOException if an error occurs
|
||||
*/
|
||||
public Content postContent(byte[] buf, MediaType contentType, boolean allowModification) throws IOException {
|
||||
RequestBody body = RequestBody.create(buf, contentType);
|
||||
RequestBody body = RequestBody.create(contentType, buf);
|
||||
|
||||
Request.Builder requestBuilder = new Request.Builder()
|
||||
.url(this.url + "post")
|
||||
@@ -122,7 +122,7 @@ public class BytebinClient extends AbstractHttpClient {
|
||||
throw new IllegalArgumentException("Existing content is not modifiable");
|
||||
}
|
||||
|
||||
RequestBody body = RequestBody.create(buf, contentType);
|
||||
RequestBody body = RequestBody.create(contentType, buf);
|
||||
|
||||
Request.Builder requestBuilder = new Request.Builder()
|
||||
.url(this.url + existingContent.key())
|
||||
|
||||
Reference in new issue
Block a user