From 724a58295cc535ac6219f83e3ee06ba077f90145 Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Tue, 3 Jun 2014 16:47:06 +0200
Subject: [PATCH] Fixed none working customer headers.

---
 src/main.c    | 2 +-
 src/setting.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index ac44a25..97ddd61 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
     }
 
diff --git a/src/setting.c b/src/setting.c
index 327ef0d..9b3e252 100644
--- a/src/setting.c
+++ b/src/setting.c
@@ -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, ',');
-- 
2.20.1