From 2bdec312193fd75243acf93c79c4eff0ce056a56 Mon Sep 17 00:00:00 2001 From: shipenok Date: Fri, 23 May 2014 12:41:09 +0400 Subject: [PATCH] minor fix to open result in browser --- Server/RequestHandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Server/RequestHandler.cpp b/Server/RequestHandler.cpp index cc7ed2273..f4fc0434f 100644 --- a/Server/RequestHandler.cpp +++ b/Server/RequestHandler.cpp @@ -118,16 +118,16 @@ void RequestHandler::handle_request(const http::Request &req, http::Reply &reply { reply.content.push_back(')'); reply.headers[1].name = "Content-Type"; - reply.headers[1].value = "text/javascript"; + reply.headers[1].value = "text/javascript; charset=UTF-8"; reply.headers[2].name = "Content-Disposition"; - reply.headers[2].value = "attachment; filename=\"response.js\""; + reply.headers[2].value = "inline; filename=\"response.js\""; } else { reply.headers[1].name = "Content-Type"; - reply.headers[1].value = "application/x-javascript"; + reply.headers[1].value = "application/x-javascript; charset=UTF-8"; reply.headers[2].name = "Content-Disposition"; - reply.headers[2].value = "attachment; filename=\"response.json\""; + reply.headers[2].value = "inline; filename=\"response.json\""; } reply.headers[0].name = "Content-Length"; reply.headers[0].value = IntToString(reply.content.size());