Skip to content

Commit 328dc56

Browse files
committed
down grade okhttp version 3.14.9, for spring-boot framework support
1 parent b915993 commit 328dc56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/java/cn/vika/core/http/OkHttpClientHttpRequestFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static Request buildRequest(URI uri, HttpMethod httpMethod, HttpHeader headers,
8989
// create Request Body by OkHttp
9090
RequestBody body = content.length > 0 ||
9191
okhttp3.internal.http.HttpMethod.requiresRequestBody(httpMethod.name()) ?
92-
RequestBody.create(content, contentType) : null;
92+
RequestBody.create(contentType, content) : null;
9393
// Create Okhttp Request
9494
Request.Builder builder = new Request.Builder().url(uri.toURL()).method(httpMethod.name(), body);
9595
// Add Header

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<logback.version>1.2.3</logback.version>
4444
<log4j.version>2.13.3</log4j.version>
4545
<httpclient.version>4.5.13</httpclient.version>
46-
<okhttp.version>5.0.0-alpha.2</okhttp.version>
46+
<okhttp.version>3.14.9</okhttp.version>
4747
<jmimemagic.version>0.1.5</jmimemagic.version>
4848
<assertj.version>3.19.0</assertj.version>
4949
<junit.version>5.7.0</junit.version>

0 commit comments

Comments
 (0)