From ab3f352782624226e5931cf9c32f192ae0e1adc7 Mon Sep 17 00:00:00 2001 From: mountford Date: Thu, 29 Dec 2016 08:34:20 -0800 Subject: [PATCH] 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 --- java/google/registry/rdap/RdapActionBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/google/registry/rdap/RdapActionBase.java b/java/google/registry/rdap/RdapActionBase.java index d4973d736..3d548c2a4 100644 --- a/java/google/registry/rdap/RdapActionBase.java +++ b/java/google/registry/rdap/RdapActionBase.java @@ -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) {