projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49c5701
)
portal: Print region information if available
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 17 Feb 2011 06:00:35 +0000
(22:00 -0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 17 Feb 2011 06:00:35 +0000
(22:00 -0800)
plugins/portal.c
patch
|
blob
|
history
diff --git
a/plugins/portal.c
b/plugins/portal.c
index
b221592
..
a1d142a
100644
(file)
--- a/
plugins/portal.c
+++ b/
plugins/portal.c
@@
-77,6
+77,10
@@
static gboolean web_result(GWebResult *result, gpointer user_data)
&str) == TRUE)
connman_info("Client-Country: %s", str);
+ if (g_web_result_get_header(result, "X-ConnMan-Client-Region",
+ &str) == TRUE)
+ connman_info("Client-Region: %s", str);
+
connman_location_report_result(location,
CONNMAN_LOCATION_RESULT_ONLINE);
break;