mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 17:23:38 +00:00
Minor tweak to proxy code (some URLs were not correctly formed).
This commit is contained in:
parent
6a22a583fe
commit
f2213021c4
1 changed files with 1 additions and 1 deletions
2
html.c
2
html.c
|
@ -3223,7 +3223,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
|
||||||
/* skip to where the proxy/ string starts */
|
/* skip to where the proxy/ string starts */
|
||||||
raw_path += xs_str_in(raw_path, proxy_prefix);
|
raw_path += xs_str_in(raw_path, proxy_prefix);
|
||||||
|
|
||||||
xs *url = xs_replace(raw_path, proxy_prefix, "https:/" "/");
|
xs *url = xs_replace_n(raw_path, proxy_prefix, "https:/" "/", 1);
|
||||||
xs *hdrs = xs_dict_new();
|
xs *hdrs = xs_dict_new();
|
||||||
|
|
||||||
hdrs = xs_dict_append(hdrs, "user-agent", USER_AGENT);
|
hdrs = xs_dict_append(hdrs, "user-agent", USER_AGENT);
|
||||||
|
|
Loading…
Reference in a new issue