mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-05-18 15:27:13 +02:00
1.39b
This commit is contained in:
parent
9e7ad68d2b
commit
4eb6621706
@ -369,6 +369,8 @@ public final class MegaAPI {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_seqno++;
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,6 @@ public final class MegaCrypterAPI {
|
|||||||
try {
|
try {
|
||||||
httppost = new HttpPost(url_api.toURI());
|
httppost = new HttpPost(url_api.toURI());
|
||||||
|
|
||||||
|
|
||||||
httppost.setHeader("Content-type", "application/json");
|
httppost.setHeader("Content-type", "application/json");
|
||||||
|
|
||||||
httppost.setHeader("User-Agent", MainPanel.DEFAULT_USER_AGENT);
|
httppost.setHeader("User-Agent", MainPanel.DEFAULT_USER_AGENT);
|
||||||
|
@ -584,6 +584,8 @@ public final class MiscTools {
|
|||||||
|
|
||||||
httpget.addHeader("User-Agent", MainPanel.DEFAULT_USER_AGENT);
|
httpget.addHeader("User-Agent", MainPanel.DEFAULT_USER_AGENT);
|
||||||
|
|
||||||
|
httpget.addHeader("Connection", "close");
|
||||||
|
|
||||||
try(CloseableHttpResponse httpresponse = httpclient.execute(httpget)) {
|
try(CloseableHttpResponse httpresponse = httpclient.execute(httpget)) {
|
||||||
|
|
||||||
Header content_encoding = httpresponse.getEntity().getContentEncoding();
|
Header content_encoding = httpresponse.getEntity().getContentEncoding();
|
||||||
@ -935,6 +937,8 @@ public final class MiscTools {
|
|||||||
|
|
||||||
HttpGet httpget = new HttpGet(new URI(string_url+"/0"));
|
HttpGet httpget = new HttpGet(new URI(string_url+"/0"));
|
||||||
|
|
||||||
|
httpget.addHeader("Connection", "close");
|
||||||
|
|
||||||
try(CloseableHttpResponse httpresponse = httpclient.execute(httpget)) {
|
try(CloseableHttpResponse httpresponse = httpclient.execute(httpget)) {
|
||||||
|
|
||||||
url_ok = (httpresponse.getStatusLine().getStatusCode() == HttpStatus.SC_OK);
|
url_ok = (httpresponse.getStatusLine().getStatusCode() == HttpStatus.SC_OK);
|
||||||
@ -1005,7 +1009,6 @@ public final class MiscTools {
|
|||||||
.add(new RequestContent())
|
.add(new RequestContent())
|
||||||
.add(new RequestTargetHost())
|
.add(new RequestTargetHost())
|
||||||
.add(new RequestConnControl())
|
.add(new RequestConnControl())
|
||||||
.add(new RequestExpectContinue())
|
|
||||||
.add(new RequestAddCookies())
|
.add(new RequestAddCookies())
|
||||||
.add(new ResponseProcessCookies())
|
.add(new ResponseProcessCookies())
|
||||||
.build()
|
.build()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user