Skip to content

Commit

Permalink
Use content type application/ld+json instead of text/plain
Browse files Browse the repository at this point in the history
Closes #28
  • Loading branch information
thunfisch987 authored and rubensworks committed Apr 7, 2024
1 parent 351ed76 commit 3b90a3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private boolean writeResponse(HttpRequest request, ChannelHandlerContext context
HttpVersion.HTTP_1_1, responseStatus,
Unpooled.copiedBuffer(responseString, CharsetUtil.UTF_8));

response.headers().set(HttpHeaderNames.CONTENT_TYPE, "text/plain; charset=UTF-8");
response.headers().set(HttpHeaderNames.CONTENT_TYPE, "application/ld+json");
// allow CORS access from everywhere so that i.e. fetch() works
response.headers().set(HttpHeaderNames.ACCESS_CONTROL_ALLOW_ORIGIN, "*");

Expand Down

0 comments on commit 3b90a3c

Please sign in to comment.