[haiku-commits] haiku: hrev50620 - src/apps/haikudepot/model

  • From: apl@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 26 Oct 2016 12:41:16 +0200 (CEST)

hrev50620 adds 1 changeset to branch 'master'
old head: 09c4bc5bd39a7908626265a9aa4e6b527784ac17
new head: 000b15f2c38d03bb75be65385abcc4fa71e4d8d6
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=000b15f2c38d+%5E09c4bc5bd39a

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

000b15f2c38d: HaikuDepot: Adjust URLs for use with HDS
  
  HDS paths are now prefixed with "__".  This change
  makes the corresponding change to the HaikuDepot
  desktop application
  
  Fixes #13030.

                                    [ Andrew Lindesay <apl@xxxxxxxxxxxxxx> ]

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

Revision:    hrev50620
Commit:      000b15f2c38d03bb75be65385abcc4fa71e4d8d6
URL:         http://cgit.haiku-os.org/haiku/commit/?id=000b15f2c38d
Author:      Andrew Lindesay <apl@xxxxxxxxxxxxxx>
Date:        Wed Oct 26 10:39:34 2016 UTC

Ticket:      https://dev.haiku-os.org/ticket/13030

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

1 file changed, 3 insertions(+), 3 deletions(-)
src/apps/haikudepot/model/WebAppInterface.cpp | 6 +++---

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

diff --git a/src/apps/haikudepot/model/WebAppInterface.cpp 
b/src/apps/haikudepot/model/WebAppInterface.cpp
index 1fabbe5..d7a1f22 100644
--- a/src/apps/haikudepot/model/WebAppInterface.cpp
+++ b/src/apps/haikudepot/model/WebAppInterface.cpp
@@ -525,7 +525,7 @@ status_t
 WebAppInterface::RetrievePackageIcon(const BString& packageName,
        BDataIO* stream)
 {
-       BString urlString = _FormFullUrl(BString("/pkgicon/") << packageName
+       BString urlString = _FormFullUrl(BString("/__pkgicon/") << packageName
                << ".hvif");
        bool isSecure = 0 == urlString.FindFirst("https://";);
 
@@ -671,7 +671,7 @@ status_t
 WebAppInterface::RetrieveScreenshot(const BString& code,
        int32 width, int32 height, BDataIO* stream)
 {
-       BString urlString = _FormFullUrl(BString("/pkgscreenshot/") << code
+       BString urlString = _FormFullUrl(BString("/__pkgscreenshot/") << code
                << ".png" << "?tw=" << width << "&th=" << height);
        bool isSecure = 0 == urlString.FindFirst("https://";);
 
@@ -795,7 +795,7 @@ WebAppInterface::_SendJsonRequest(const char* domain, 
BString jsonString,
        if ((flags & ENABLE_DEBUG) != 0)
                printf("_SendJsonRequest(%s)\n", jsonString.String());
 
-       BString urlString = _FormFullUrl(BString("/api/v1/") << domain);
+       BString urlString = _FormFullUrl(BString("/__api/v1/") << domain);
        bool isSecure = 0 == urlString.FindFirst("https://";);
        BUrl url(urlString);
 


Other related posts: