|
16 | 16 | package org.asynchttpclient;
|
17 | 17 |
|
18 | 18 | import static org.asynchttpclient.util.MiscUtils.isNonEmpty;
|
| 19 | +import static org.asynchttpclient.util.AsyncHttpProviderUtils.*; |
19 | 20 |
|
20 | 21 | import java.io.File;
|
21 | 22 | import java.io.InputStream;
|
|
34 | 35 | import org.asynchttpclient.request.body.generator.BodyGenerator;
|
35 | 36 | import org.asynchttpclient.request.body.multipart.Part;
|
36 | 37 | import org.asynchttpclient.uri.Uri;
|
37 |
| -import org.asynchttpclient.util.AsyncHttpProviderUtils; |
38 | 38 | import org.asynchttpclient.util.UriEncoder;
|
39 | 39 | import org.slf4j.Logger;
|
40 | 40 | import org.slf4j.LoggerFactory;
|
@@ -601,7 +601,7 @@ private void computeRequestCharset() {
|
601 | 601 | try {
|
602 | 602 | final String contentType = request.headers.getFirstValue("Content-Type");
|
603 | 603 | if (contentType != null) {
|
604 |
| - final Charset charset = AsyncHttpProviderUtils.parseCharset(contentType); |
| 604 | + final Charset charset = parseCharset(contentType); |
605 | 605 | if (charset != null) {
|
606 | 606 | // ensure that if charset is provided with the Content-Type header,
|
607 | 607 | // we propagate that down to the charset of the Request object
|
@@ -635,7 +635,7 @@ private void computeFinalUri() {
|
635 | 635 | logger.debug("setUrl hasn't been invoked. Using {}", DEFAULT_REQUEST_URL);
|
636 | 636 | request.uri = DEFAULT_REQUEST_URL;
|
637 | 637 | } else {
|
638 |
| - AsyncHttpProviderUtils.validateSupportedScheme(request.uri); |
| 638 | + validateSupportedScheme(request.uri); |
639 | 639 | }
|
640 | 640 |
|
641 | 641 | request.uri = uriEncoder.encode(request.uri, queryParams);
|
|
0 commit comments