projects
/
framework
/
connectivity
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service: Support function that saves service
[framework/connectivity/connman.git]
/
src
/
wispr.c
diff --git
a/src/wispr.c
b/src/wispr.c
index
4fe9e75
..
9412f1e
100644
(file)
--- a/
src/wispr.c
+++ b/
src/wispr.c
@@
-386,7
+386,7
@@
static void xml_wispr_parser_callback(const char *str, gpointer user_data)
result = g_markup_parse_context_parse(parser_context,
str, strlen(str), NULL);
if (result == TRUE)
result = g_markup_parse_context_parse(parser_context,
str, strlen(str), NULL);
if (result == TRUE)
-
result =
g_markup_parse_context_end_parse(parser_context, NULL);
+ g_markup_parse_context_end_parse(parser_context, NULL);
g_markup_parse_context_free(parser_context);
}
g_markup_parse_context_free(parser_context);
}
@@
-610,7
+610,7
@@
static gboolean wispr_manage_message(GWebResult *result,
if (__connman_agent_request_login_input(wp_context->service,
wispr_portal_request_wispr_login,
if (__connman_agent_request_login_input(wp_context->service,
wispr_portal_request_wispr_login,
- wp_context) != -EI
O
)
+ wp_context) != -EI
NPROGRESS
)
wispr_portal_error(wp_context);
break;
wispr_portal_error(wp_context);
break;
@@
-692,8
+692,9
@@
static gboolean wispr_portal_web_result(GWebResult *result, gpointer user_data)
break;
case 302:
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);
__connman_agent_request_browser(wp_context->service,
wispr_portal_browser_reply_cb,
wp_context->status_url, wp_context);