summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorpancake <nopcode.org>2010-04-08 20:28:32 +0200
committerpancake <nopcode.org>2010-04-08 20:28:32 +0200
commit4b1b1b8a2070793e7f6467f2005d6fbd1ae63065 (patch)
treed1dbed73044c17a6ca39d94c6bd432dec5f8b76c /surf.c
parent8aabfa5b4591b020173441a7a6df631ba3ecae3f (diff)
downloadsurf-4b1b1b8a2070793e7f6467f2005d6fbd1ae63065.tar.gz
surf-4b1b1b8a2070793e7f6467f2005d6fbd1ae63065.tar.bz2
surf-4b1b1b8a2070793e7f6467f2005d6fbd1ae63065.zip
remove empty lines
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/surf.c b/surf.c
index cac31d6..b96ecf3 100644
--- a/surf.c
+++ b/surf.c
@@ -589,9 +589,8 @@ newrequest(SoupSession *s, SoupMessage *msg, gpointer v) {
soup_message_headers_remove(h, "Cookie");
uri = soup_message_get_uri(msg);
- if((c = getcookies(uri))) {
+ if((c = getcookies(uri)))
soup_message_headers_append(h, "Cookie", c);
- }
g_signal_connect_after(G_OBJECT(msg), "got-headers", G_CALLBACK(gotheaders), NULL);
}
@@ -754,7 +753,6 @@ setup(void) {
soup_session_remove_feature_by_type(s, soup_cookie_jar_get_type());
g_signal_connect_after(G_OBJECT(s), "request-started", G_CALLBACK(newrequest), NULL);
-
/* proxy */
if((proxy = getenv("http_proxy")) && strcmp(proxy, "")) {
new_proxy = g_strrstr(proxy, "http://") ? g_strdup(proxy) :