diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2012-05-22 13:17:38 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-22 21:08:22 +0200 |
commit | b802e46cea8558a8be675bf837eaa4f304dfef78 (patch) | |
tree | 9959d0a2d23067762a4d2655c9c9a28c9b421940 /src/wispr.c | |
parent | 6649bd624b81a69267c7d03c9d5f95a44dbf8134 (diff) | |
download | connman-b802e46cea8558a8be675bf837eaa4f304dfef78.tar.gz connman-b802e46cea8558a8be675bf837eaa4f304dfef78.tar.bz2 connman-b802e46cea8558a8be675bf837eaa4f304dfef78.zip |
wispr: If redirected and TLS is not supported we fallback on browser request
Diffstat (limited to 'src/wispr.c')
-rw-r--r-- | src/wispr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wispr.c b/src/wispr.c index d43763d7..e5796d76 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); |