mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-11 11:35:07 -05:00
add mr option in keyserver class before query (code simplification)
This commit is contained in:
parent
d1f0374620
commit
eebf1c171a
@ -216,9 +216,9 @@ public class HkpKeyServer extends KeyServer {
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
return null;
|
||||
}
|
||||
String request = "/pks/lookup?op=index&search=" + encodedQuery + "&options=mr";
|
||||
String request = "/pks/lookup?op=index&options=mr&search=" + encodedQuery;
|
||||
|
||||
String data = null;
|
||||
String data;
|
||||
try {
|
||||
data = query(request);
|
||||
} catch (HttpError e) {
|
||||
@ -279,7 +279,7 @@ public class HkpKeyServer extends KeyServer {
|
||||
HttpClient client = new DefaultHttpClient();
|
||||
try {
|
||||
HttpGet get = new HttpGet("http://" + mHost + ":" + mPort
|
||||
+ "/pks/lookup?op=get&search=" + PgpKeyHelper.convertKeyIdToHex(keyId) + "&options=mr");
|
||||
+ "/pks/lookup?op=get&options=mr&search=" + PgpKeyHelper.convertKeyIdToHex(keyId));
|
||||
|
||||
HttpResponse response = client.execute(get);
|
||||
if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user