Desired header: content-type: text/html; charset=utf-8
However:
server.ext('onPreResponse', function(request, reply) {
request.response.charset('utf-8');
return reply.continue();
});
results in the following header: content-type: text/html. (text/html is the default content-type header)
The current workaround is to use
server.ext('onPreResponse', function(request, reply) {
request.response.type('text/html').charset('utf-8');
return reply.continue();
});
which results in the desired behavior.
Desired header:
content-type: text/html; charset=utf-8However:
results in the following header:
content-type: text/html. (text/htmlis the default content-type header)The current workaround is to use
which results in the desired behavior.