summaryrefslogtreecommitdiff
path: root/src/wispr.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-05-22 13:17:38 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-05-22 21:08:22 +0200
commitb802e46cea8558a8be675bf837eaa4f304dfef78 (patch)
tree9959d0a2d23067762a4d2655c9c9a28c9b421940 /src/wispr.c
parent6649bd624b81a69267c7d03c9d5f95a44dbf8134 (diff)
downloadconnman-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.c5
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);