Use the surf user agent when downloading with wget.
[surf.git] / surf.c
diff --git a/surf.c b/surf.c
index 492c836..cac329b 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -345,7 +345,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), useragent);
        spawn(c, &arg);
        return FALSE;
 }
@@ -461,7 +461,7 @@ newclient(void) {
                 * window class (WM_CLASS) is capped, while the resource is in
                 * lowercase.   Both these values come as a pair.
                 */
-               gtk_window_set_wmclass(GTK_WINDOW(c->win), "surf", "surf");
+               gtk_window_set_wmclass(GTK_WINDOW(c->win), "surf", "Surf");
 
                /* TA:  20091214:  And set the role here as well -- so that
                 * sessions can pick this up.