From 5b918998019ed669f58bee83b39ef98e370534ee Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 16 Feb 2011 22:00:35 -0800 Subject: [PATCH] portal: Print region information if available --- plugins/portal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/portal.c b/plugins/portal.c index b221592..a1d142a 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; -- 2.7.4