HaikuDepot: Add HTTP Header for JSON-RPC

Change-Id: Ibdc112378870cb29770b7938bc8d80631009c03e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3750
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Andrew Lindesay 2021-02-24 21:59:06 +13:00
parent e5b7c9e313
commit 64a0ec2d3e

View File

@ -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);