[libsoup/hsts: 16/36] Rename 'origin' variable to avoid confusion
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/hsts: 16/36] Rename 'origin' variable to avoid confusion
- Date: Tue, 25 Sep 2018 14:56:11 +0000 (UTC)
commit b4202be08311c1da88f70b3cd855edfe3ea9856f
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Aug 29 15:18:32 2018 +0300
Rename 'origin' variable to avoid confusion
libsoup/soup-hsts-policy.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libsoup/soup-hsts-policy.c b/libsoup/soup-hsts-policy.c
index 1908af39..04482aaa 100644
--- a/libsoup/soup-hsts-policy.c
+++ b/libsoup/soup-hsts-policy.c
@@ -257,7 +257,7 @@ soup_hsts_policy_new_from_response (SoupMessage *msg)
soup_message_headers_iter_init (&iter, msg->response_headers);
while (soup_message_headers_iter_next (&iter, &name, &value)) {
- SoupURI *origin;
+ SoupURI *uri;
GHashTable *params;
const char *max_age_str;
char *endptr;
@@ -269,7 +269,7 @@ soup_hsts_policy_new_from_response (SoupMessage *msg)
if (strcmp (name, "Strict-Transport-Security") != 0)
continue;
- origin = soup_message_get_uri (msg);
+ uri = soup_message_get_uri (msg);
params = soup_header_parse_semi_param_list (value);
@@ -290,7 +290,7 @@ soup_hsts_policy_new_from_response (SoupMessage *msg)
if (g_hash_table_size (params) > (include_subdomains ? 2 : 1))
goto out;
- policy = soup_hsts_policy_new (origin->host, max_age, include_subdomains);
+ policy = soup_hsts_policy_new (uri->host, max_age, include_subdomains);
out:
soup_header_free_param_list (params);
return policy;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]