add mr option in keyserver class before query (code simplification)

This commit is contained in:
Dominik Schürmann 2014-03-18 16:29:40 +01:00
parent d1f0374620
commit eebf1c171a

View File

@ -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) {