-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Dillo user agent for downloads too
Send the user agent to the downloads DPI so we can use the same as Dillo uses from the http_user_agent option. See: https://lists.mailman3.com/hyperkitty/list/[email protected]/thread/A6IHJ4TBGHJ3CT2UOMEAROSG2WRTRO6U/
- Loading branch information
Showing
2 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* File: capi.c | ||
* | ||
* Copyright 2002-2007 Jorge Arellano Cid <[email protected]> | ||
* Copyright 2023 Rodrigo Arias Mallo <[email protected]> | ||
* Copyright 2023-2024 Rodrigo Arias Mallo <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -32,6 +32,7 @@ | |
#include "uicmd.hh" | ||
#include "domain.h" | ||
#include "../dpip/dpip.h" | ||
#include "prefs.h" | ||
|
||
/* for testing dpi chat */ | ||
#include "bookmark.h" | ||
|
@@ -305,8 +306,9 @@ static char *Capi_dpi_build_cmd(DilloWeb *web, char *server) | |
|
||
if (strcmp(server, "downloads") == 0) { | ||
/* let the downloads server get it */ | ||
cmd = a_Dpip_build_cmd("cmd=%s url=%s destination=%s", | ||
"download", URL_STR(web->url), web->filename); | ||
cmd = a_Dpip_build_cmd("cmd=%s url=%s destination=%s user-agent=%s", | ||
"download", URL_STR(web->url), web->filename, | ||
prefs.http_user_agent); | ||
|
||
} else { | ||
/* For everyone else, the url string is enough... */ | ||
|