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:
parent
e5b7c9e313
commit
64a0ec2d3e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user