]> saetta.ns0.it Git - libzakcgi/commitdiff
Bugfix in Session::get_header: ZakCgiMain::get_env returns string and not gvalue...
authorAndrea Zagli <azagli@libero.it>
Wed, 29 Jul 2015 14:40:34 +0000 (16:40 +0200)
committerAndrea Zagli <azagli@libero.it>
Wed, 29 Jul 2015 14:40:34 +0000 (16:40 +0200)
src/session.c

index 9f0ee38ff21efd5550a97a7ca5cd9b4d77f0dcc4..e06dd4debfd963a6255e873d69570d67a7015f14 100644 (file)
@@ -193,7 +193,7 @@ gchar
                        ht_env = zak_cgi_main_get_env (priv->zakcgimain);
 
                        ret = zak_cgi_main_set_cookie ("ZAKCGISID", priv->sid, NULL, NULL,
-                                                                                  priv->base_uri != NULL ? priv->base_uri : g_value_get_string (g_hash_table_lookup (ht_env, "CONTEXT_PREFIX")),
+                                                                                  priv->base_uri != NULL ? priv->base_uri : (gchar *)g_hash_table_lookup (ht_env, "CONTEXT_PREFIX"),
                                                                                   FALSE, FALSE);
                }
        else