From b802e46cea8558a8be675bf837eaa4f304dfef78 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 22 May 2012 13:17:38 +0300 Subject: [PATCH] wispr: If redirected and TLS is not supported we fallback on browser request --- src/wispr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wispr.c b/src/wispr.c index d43763d..e5796d7 100644 --- a/src/wispr.c +++ b/src/wispr.c @@ -692,8 +692,9 @@ static gboolean wispr_portal_web_result(GWebResult *result, gpointer user_data) break; case 302: - if (g_web_result_get_header(result, "Location", - &redirect) == FALSE) { + if (g_web_supports_tls() == FALSE || + g_web_result_get_header(result, "Location", + &redirect) == FALSE) { __connman_agent_request_browser(wp_context->service, wispr_portal_browser_reply_cb, wp_context->status_url, wp_context); -- 2.7.4