Bharath Vissapragada has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/11110


Change subject: IMPALA-7387: Set correct MIME type for JSON webpages
......................................................................

IMPALA-7387: Set correct MIME type for JSON webpages

Right now Impala sets "text/plain" as the MIME type for all non-HTML
pages. As per RFC-4627[1], JSON's prescribed MIME type is
"application/json".

Testing:
- Inspected HTTP headers manually in the browser.
- Added tests.

[1] http://www.ietf.org/rfc/rfc4627.txt

Change-Id: I7ad94343151730851a4ad01a1f4b9326a36a37ea
---
M be/src/util/webserver.cc
M be/src/util/webserver.h
M tests/webserver/test_web_pages.py
3 files changed, 27 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/10/11110/3
--
To view, visit http://gerrit.cloudera.org:8080/11110
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7ad94343151730851a4ad01a1f4b9326a36a37ea
Gerrit-Change-Number: 11110
Gerrit-PatchSet: 3
Gerrit-Owner: Bharath Vissapragada <[email protected]>

Reply via email to