[epiphany/wip/sync-rebase: 41/74] sync-crypto: Consider the url query too when creating HAWK header
- From: Gabriel - Cristian Ivascu <gabrielivascu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/sync-rebase: 41/74] sync-crypto: Consider the url query too when creating HAWK header
- Date: Thu, 29 Sep 2016 17:46:15 +0000 (UTC)
commit b275cc6df6d07fa0d2c0fad39b4c118d34b3684a
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]