cpT
2 天以前 08d8933d3fe66fb83f1e2e7e4038e62b3c5143e1
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();
        }