aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorWilliam Wennerström <william@wstrm.dev>2020-07-02 22:04:21 +0200
committerWilliam Wennerström <william@wstrm.dev>2020-11-16 21:58:09 +0100
commit9499df65859abd1404d3f9e96b8af859d3315bff (patch)
tree3af8a29c089cd79df9e8581e18c4f94a91a07975 /src/command
parent362c6973de1182554d33936403794d9aa5efe093 (diff)
downloadprofani-tty-9499df65859abd1404d3f9e96b8af859d3315bff.tar.gz
Add http_download tool
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_funcs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 55bef3d1..7d921ea3 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -9114,8 +9114,8 @@ cmd_url_open(ProfWin* window, const char* const command, gchar** args)
gchar* suffix_cmd = g_strdup(suffix_cmd_pref[1]);
g_strfreev(suffix_cmd_pref);
- gchar* scheme = g_uri_parse_scheme(args[1]);
- if (0 == g_strcmp0(scheme, "aesgcm")) {
+ gchar *scheme = g_uri_parse_scheme(args[1]);
+ if( 0 == g_strcmp0(scheme, OMEMO_AESGCM_URL_SCHEME)) {
require_save = true;
}
g_free(scheme);
@@ -9221,7 +9221,8 @@ cmd_url_save(ProfWin* window, const char* const command, gchar** args)
if (0 == g_strcmp0(scheme, "http")
|| 0 == g_strcmp0(scheme, "https")
- || 0 == g_strcmp0(scheme, "aesgcm")) {
+ || 0 == g_strcmp0(scheme, OMEMO_AESGCM_URL_SCHEME)
+ ) {
scheme_cmd = prefs_get_string_with_option(PREF_URL_SAVE_CMD, scheme);
}