From 8b8d79eeffb33a9451bd7a30de3499bc7bba8974 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 19 May 2012 17:01:11 +0900 Subject: [PATCH] Include text/html in content-type for error status response --- examples/SpdyServer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/SpdyServer.cc b/examples/SpdyServer.cc index 6fbf9e8c..0142a01d 100644 --- a/examples/SpdyServer.cc +++ b/examples/SpdyServer.cc @@ -450,6 +450,8 @@ void prepare_status_response(Request *req, SpdyEventHandler *hd, data_prd.read_callback = file_read_callback; std::vector > headers; headers.push_back(std::make_pair("content-encoding", "gzip")); + headers.push_back(std::make_pair("content-type", + "text/html; charset=UTF-8")); hd->submit_response(status, req->stream_id, headers, &data_prd); } }