#
LSH
2024-03-29 e7dd8396e19f538e5f51ced927e2f62e1f75fa63
src/main/java/com/zy/common/utils/HttpHandler.java
@@ -16,7 +16,7 @@
public class HttpHandler {
    private static final Integer DEFAULT_TIMEOUT_SECONDS = 5;
    private static final MediaType MEDIA_TYPE = MediaType.parse("application/json;charset=utf-8");
    private static final MediaType MEDIA_TYPE = MediaType.parse("application/json");
    private String uri;
    private String path;
@@ -80,7 +80,7 @@
        } else {
            RequestBody body = RequestBody.create(MEDIA_TYPE, json);
            Request.Builder builder = headerBuilder.url((https?"https://":"http://")+uri+path);
            builder.header("Content-Type", "application/json;charset=UTF-8");
            builder.header("Content-Type", "application/json");
            request = builder.post(body).build();
        }