portal: Print region information if available
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Feb 2011 06:00:35 +0000 (22:00 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Feb 2011 06:00:35 +0000 (22:00 -0800)
plugins/portal.c

index b221592..a1d142a 100644 (file)
@@ -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;