remove empty lines
This commit is contained in:
parent
8aabfa5b45
commit
4b1b1b8a20
4
surf.c
4
surf.c
|
@ -589,9 +589,8 @@ newrequest(SoupSession *s, SoupMessage *msg, gpointer v) {
|
||||||
|
|
||||||
soup_message_headers_remove(h, "Cookie");
|
soup_message_headers_remove(h, "Cookie");
|
||||||
uri = soup_message_get_uri(msg);
|
uri = soup_message_get_uri(msg);
|
||||||
if((c = getcookies(uri))) {
|
if((c = getcookies(uri)))
|
||||||
soup_message_headers_append(h, "Cookie", c);
|
soup_message_headers_append(h, "Cookie", c);
|
||||||
}
|
|
||||||
g_signal_connect_after(G_OBJECT(msg), "got-headers", G_CALLBACK(gotheaders), NULL);
|
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());
|
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);
|
g_signal_connect_after(G_OBJECT(s), "request-started", G_CALLBACK(newrequest), NULL);
|
||||||
|
|
||||||
|
|
||||||
/* proxy */
|
/* proxy */
|
||||||
if((proxy = getenv("http_proxy")) && strcmp(proxy, "")) {
|
if((proxy = getenv("http_proxy")) && strcmp(proxy, "")) {
|
||||||
new_proxy = g_strrstr(proxy, "http://") ? g_strdup(proxy) :
|
new_proxy = g_strrstr(proxy, "http://") ? g_strdup(proxy) :
|
||||||
|
|
Loading…
Reference in New Issue