[haiku-commits] haiku: hrev54964 - src/apps/haikudepot/server

  • From: Andrew Lindesay <apl@xxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 26 Feb 2021 19:04:38 +0000 (UTC)

hrev54964 adds 1 changeset to branch 'master'
old head: e5b7c9e313bfff75b75d69cf506a8898fc44f286
new head: 64a0ec2d3ee1343a6e838f45c4651db4ee4ee5e2
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=64a0ec2d3ee1+%5Ee5b7c9e313bf

----------------------------------------------------------------------------

64a0ec2d3ee1: 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@xxxxxxxxx>

                                    [ Andrew Lindesay <apl@xxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev54964
Commit:      64a0ec2d3ee1343a6e838f45c4651db4ee4ee5e2
URL:         https://git.haiku-os.org/haiku/commit/?id=64a0ec2d3ee1
Author:      Andrew Lindesay <apl@xxxxxxxxxxxxxx>
Date:        Wed Feb 24 08:59:06 2021 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+)
src/apps/haikudepot/server/WebAppInterface.cpp | 1 +

----------------------------------------------------------------------------

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


Other related posts:

  • » [haiku-commits] haiku: hrev54964 - src/apps/haikudepot/server - Andrew Lindesay