diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-02-16 22:00:35 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-02-16 22:00:35 -0800 |
commit | 5b918998019ed669f58bee83b39ef98e370534ee (patch) | |
tree | 86e13806a530619cf1b4c74f21e82529637b7714 | |
parent | 49c570129806b102596572f4d27a29ccfd6ab492 (diff) | |
download | connman-5b918998019ed669f58bee83b39ef98e370534ee.tar.gz connman-5b918998019ed669f58bee83b39ef98e370534ee.tar.bz2 connman-5b918998019ed669f58bee83b39ef98e370534ee.zip |
portal: Print region information if available
-rw-r--r-- | plugins/portal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/portal.c b/plugins/portal.c index b2215920..a1d142a0 100644 --- 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; |