mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 03:57:51 +02:00
Clean up RDAP action logs and request plain text (#213)
* Remove unused log argument * Use the right accept-encoding By default we request gzip and theoretically we'd decode it automatically on our end but for some reason that's not working. I tested this on Alpha and it worked
This commit is contained in:
parent
8240dee691
commit
8d289dbb54
1 changed files with 2 additions and 1 deletions
|
@ -130,6 +130,7 @@ public final class UpdateRegistrarRdapBaseUrlsAction implements Runnable {
|
||||||
try {
|
try {
|
||||||
HttpRequest request =
|
HttpRequest request =
|
||||||
requestFactory.buildGetRequest(new GenericUrl(String.format(LIST_URL, tld)));
|
requestFactory.buildGetRequest(new GenericUrl(String.format(LIST_URL, tld)));
|
||||||
|
request.getHeaders().setAcceptEncoding("identity");
|
||||||
request.getHeaders().setCookie(String.format("%s=%s", COOKIE_ID, id));
|
request.getHeaders().setCookie(String.format("%s=%s", COOKIE_ID, id));
|
||||||
HttpResponse response = request.execute();
|
HttpResponse response = request.execute();
|
||||||
|
|
||||||
|
@ -175,7 +176,7 @@ public final class UpdateRegistrarRdapBaseUrlsAction implements Runnable {
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
// Login failures are bad but not unexpected for certain TLDs. We shouldn't store those
|
// Login failures are bad but not unexpected for certain TLDs. We shouldn't store those
|
||||||
// but rather should only store useful Throwables.
|
// but rather should only store useful Throwables.
|
||||||
logger.atWarning().log("Error logging in to MoSAPI server: " + e.getMessage(), e);
|
logger.atWarning().log("Error logging in to MoSAPI server: " + e.getMessage());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue