[haiku-commits] Change in haiku[master]: HaikuDepot: Add HTTP Header for JSON-RPC

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 24 Feb 2021 09:00:45 +0000

From Andrew Lindesay <apl@xxxxxxxxxxxxxx>:

Andrew Lindesay has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3750 ;)


Change subject: HaikuDepot: Add HTTP Header for JSON-RPC
......................................................................

HaikuDepot: Add HTTP Header for JSON-RPC
---
M src/apps/haikudepot/server/WebAppInterface.cpp
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/50/3750/1

diff --git a/src/apps/haikudepot/server/WebAppInterface.cpp 
b/src/apps/haikudepot/server/WebAppInterface.cpp
index 5e94317..8622a57 100644
--- a/src/apps/haikudepot/server/WebAppInterface.cpp
+++ b/src/apps/haikudepot/server/WebAppInterface.cpp
@@ -861,6 +861,7 @@

        BHttpHeaders headers;
        headers.AddHeader("Content-Type", "application/json");
+       headers.AddHeader("Accept", "application/json");
        ServerSettings::AugmentHeaders(headers);

        BHttpRequest* request = make_http_request(url, &listener, &context);

--
To view, visit https://review.haiku-os.org/c/haiku/+/3750
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: Ibdc112378870cb29770b7938bc8d80631009c03e
Gerrit-Change-Number: 3750
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Lindesay <apl@xxxxxxxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: HaikuDepot: Add HTTP Header for JSON-RPC - Gerrit