Add a referer argument to the DOWNLOAD macro. Some sites need this. Thanks

Hiltjo Posthuma!
This commit is contained in:
Christoph Lohmann 2012-11-20 11:53:29 +01:00
commit a7ea753f93
2 changed files with 10 additions and 4 deletions

2
surf.c
View file

@ -430,7 +430,7 @@ initdownload(WebKitWebView *view, WebKitDownload *o, Client *c) {
Arg arg;
updatewinid(c);
arg = (Arg)DOWNLOAD((char *)webkit_download_get_uri(o));
arg = (Arg)DOWNLOAD((char *)webkit_download_get_uri(o), geturi(c));
spawn(c, &arg);
return FALSE;
}