mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02: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:
parent
98bbf8e7a2
commit
ab3f352782
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue