mirror of https://github.com/M66B/FairEmail.git
Refactoring
This commit is contained in:
parent
0385883390
commit
77c56905d9
|
@ -62,7 +62,6 @@ import java.io.ByteArrayOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.net.HttpURLConnection;
|
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.Socket;
|
import java.net.Socket;
|
||||||
|
@ -566,7 +565,7 @@ public class DnsHelper {
|
||||||
request.connect();
|
request.connect();
|
||||||
|
|
||||||
int status = request.getResponseCode();
|
int status = request.getResponseCode();
|
||||||
if (status != HttpURLConnection.HTTP_OK)
|
if (status != HttpsURLConnection.HTTP_OK)
|
||||||
throw new IOException("Error " + status + ": " + request.getResponseMessage());
|
throw new IOException("Error " + status + ": " + request.getResponseMessage());
|
||||||
|
|
||||||
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||||
|
|
Loading…
Reference in New Issue