Merge pull request #885 from metamx/fix-content-type

fix output content-type
This commit is contained in:
Charles Allen 2014-11-18 11:25:08 -08:00
commit 405d299e0a
1 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ public class QueryResource
outputStream.close(); outputStream.close();
} }
}, },
isSmile ? APPLICATION_JSON : APPLICATION_SMILE isSmile ? APPLICATION_SMILE : APPLICATION_JSON
) )
.header("X-Druid-Query-Id", queryId) .header("X-Druid-Query-Id", queryId)
.header("X-Druid-Response-Context", jsonMapper.writeValueAsString(responseContext)) .header("X-Druid-Response-Context", jsonMapper.writeValueAsString(responseContext))