summaryrefslogtreecommitdiff
path: root/src/plugins/script/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/script/script.c')
-rw-r--r--src/plugins/script/script.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/plugins/script/script.c b/src/plugins/script/script.c
index 43fc248e5..48d68eff5 100644
--- a/src/plugins/script/script.c
+++ b/src/plugins/script/script.c
@@ -100,9 +100,6 @@ script_language_search_by_extension (const char *extension)
/*
* Builds download URL (to use with hook_process or hook_process_hashtable).
*
- * If the option script.scripts.url_force_https is enabled, the protocol is
- * forced to HTTPS (if URL starts with "http://").
- *
* Note: result must be freed after use.
*/
@@ -115,21 +112,13 @@ script_build_download_url (const char *url)
if (!url || !url[0])
return NULL;
- /* length of url + "url:" + 1 (for httpS) */
- length = 4 + 1 + strlen (url) + 1;
+ /* length of url + "url:" */
+ length = 4 + strlen (url) + 1;
result = malloc (length);
if (!result)
return NULL;
- if (weechat_config_boolean (script_config_scripts_url_force_https)
- && (weechat_strncasecmp (url, "http://", 7) == 0))
- {
- snprintf (result, length, "url:https://%s", url + 7);
- }
- else
- {
- snprintf (result, length, "url:%s", url);
- }
+ snprintf (result, length, "url:%s", url);
return result;
}