[epiphany/wip/sync-rebase: 53/86] sync-crypto: Consider the url query too when creating HAWK header
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/sync-rebase: 53/86] sync-crypto: Consider the url query too when creating HAWK header
- Date: Fri, 7 Oct 2016 22:53:10 +0000 (UTC)
commit 972f51caacda8f97640ba47f064dfd4190d9fec7
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date: Mon Aug 8 21:06:02 2016 +0300
sync-crypto: Consider the url query too when creating HAWK header
src/ephy-sync-crypto.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-sync-crypto.c b/src/ephy-sync-crypto.c
index a194360..947a69e 100644
--- a/src/ephy-sync-crypto.c
+++ b/src/ephy-sync-crypto.c
@@ -793,7 +793,10 @@ ephy_sync_crypto_compute_hawk_header (const gchar *url,
g_return_val_if_fail (uri, NULL);
hostname = soup_uri_get_host (uri);
port = soup_uri_get_port (uri);
- resource = soup_uri_get_path (uri);
+ if (soup_uri_get_query (uri) != NULL)
+ resource = g_strdup_printf ("%s?%s", soup_uri_get_path (uri), soup_uri_get_query (uri));
+ else
+ resource = soup_uri_get_path (uri);
if (!hash && payload) {
const gchar *content_type;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]