Fixed none working customer headers.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 3 Jun 2014 14:47:06 +0000 (16:47 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 3 Jun 2014 14:47:06 +0000 (16:47 +0200)
src/main.c
src/setting.c

index ac44a25..97ddd61 100644 (file)
@@ -565,7 +565,7 @@ static void webview_request_starting_cb(WebKitWebView *view,
     hsts_prepare_message(vb.session, msg);
 #endif
 
-    if (vb.config.headers) {
+    if (!vb.config.headers) {
         return;
     }
 
index 327ef0d..9b3e252 100644 (file)
@@ -853,7 +853,7 @@ static SettingStatus headers(const Setting *s, const SettingType type)
 
         if (vb.config.headers) {
             str = g_string_new("");
-            /* build a list woth the header values */
+            /* build a list with the header values */
             g_hash_table_iter_init(&iter, vb.config.headers);
             while (g_hash_table_iter_next(&iter, (gpointer*)&key, (gpointer*)&value)) {
                 g_string_append_c(str, ',');