[libsoup/hsts] Remove duplicate soup_uri_get_host() call
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/hsts] Remove duplicate soup_uri_get_host() call
- Date: Wed, 26 Sep 2018 15:03:49 +0000 (UTC)
commit ec5641ae610bcdc4da97dc48a63f5380f13549bb
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Sep 26 16:43:40 2018 +0300
Remove duplicate soup_uri_get_host() call
libsoup/soup-hsts-enforcer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libsoup/soup-hsts-enforcer.c b/libsoup/soup-hsts-enforcer.c
index adf5d70f..67ed6eb3 100644
--- a/libsoup/soup-hsts-enforcer.c
+++ b/libsoup/soup-hsts-enforcer.c
@@ -505,7 +505,7 @@ preprocess_request (SoupHSTSEnforcer *enforcer, SoupMessage *msg)
scheme = soup_uri_get_scheme (uri);
if (scheme == SOUP_URI_SCHEME_HTTP) {
- if (soup_hsts_enforcer_must_enforce_secure_transport (enforcer, soup_uri_get_host (uri))) {
+ if (soup_hsts_enforcer_must_enforce_secure_transport (enforcer, host)) {
rewrite_message_uri_to_https (msg);
g_signal_connect (msg, "starting",
G_CALLBACK (on_sts_known_host_message_starting),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]