From 64a0ec2d3ee1343a6e838f45c4651db4ee4ee5e2 Mon Sep 17 00:00:00 2001 From: Andrew Lindesay Date: Wed, 24 Feb 2021 21:59:06 +1300 Subject: [PATCH] HaikuDepot: Add HTTP Header for JSON-RPC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibdc112378870cb29770b7938bc8d80631009c03e Reviewed-on: https://review.haiku-os.org/c/haiku/+/3750 Reviewed-by: Jérôme Duval --- src/apps/haikudepot/server/WebAppInterface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apps/haikudepot/server/WebAppInterface.cpp b/src/apps/haikudepot/server/WebAppInterface.cpp index 5e94317760..8622a57437 100644 --- a/src/apps/haikudepot/server/WebAppInterface.cpp +++ b/src/apps/haikudepot/server/WebAppInterface.cpp @@ -861,6 +861,7 @@ WebAppInterface::_SendJsonRequest(const char* domain, BHttpHeaders headers; headers.AddHeader("Content-Type", "application/json"); + headers.AddHeader("Accept", "application/json"); ServerSettings::AugmentHeaders(headers); BHttpRequest* request = make_http_request(url, &listener, &context);