1
0
mirror of https://github.com/google/nomulus synced 2026-01-08 15:21:46 +00: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:
gbrodman
2019-08-06 14:00:09 -04:00
committed by GitHub
parent 4fd32c8b5c
commit cf3f9603f7

View File

@@ -130,6 +130,7 @@ public final class UpdateRegistrarRdapBaseUrlsAction implements Runnable {
try {
HttpRequest request =
requestFactory.buildGetRequest(new GenericUrl(String.format(LIST_URL, tld)));
request.getHeaders().setAcceptEncoding("identity");
request.getHeaders().setCookie(String.format("%s=%s", COOKIE_ID, id));
HttpResponse response = request.execute();
@@ -175,7 +176,7 @@ public final class UpdateRegistrarRdapBaseUrlsAction implements Runnable {
} catch (Throwable e) {
// Login failures are bad but not unexpected for certain TLDs. We shouldn't store those
// 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;
}
try {