mirror of
https://github.com/google/nomulus
synced 2026-01-06 05:27:13 +00:00
Clean up RDAP code
For some reason, although a constant was defined for the RDAP response content type, it was being used in one place but not another. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=143185157
This commit is contained in:
@@ -115,7 +115,7 @@ public abstract class RdapActionBase implements Runnable {
|
||||
if (requestMethod != Action.Method.HEAD) {
|
||||
response.setPayload(JSONValue.toJSONString(rdapJson));
|
||||
}
|
||||
response.setContentType(MediaType.create("application", "rdap+json"));
|
||||
response.setContentType(RESPONSE_MEDIA_TYPE);
|
||||
} catch (HttpException e) {
|
||||
setError(e.getResponseCode(), e.getResponseCodeString(), e.getMessage());
|
||||
} catch (URISyntaxException | IllegalArgumentException e) {
|
||||
|
||||
Reference in New Issue
Block a user