diff options
| author | 2024-11-14 16:21:14 +0100 | |
|---|---|---|
| committer | 2024-11-14 16:21:14 +0100 | |
| commit | f2213021c492e43479b5602e5dee87c4ee04a7c8 (patch) | |
| tree | f53a6450e6bdb050bb1c924b4b4066bcd23489e4 /html.c | |
| parent | Version 2.63 RELEASED. (diff) | |
| download | snac2-f2213021c492e43479b5602e5dee87c4ee04a7c8.tar.gz snac2-f2213021c492e43479b5602e5dee87c4ee04a7c8.tar.xz snac2-f2213021c492e43479b5602e5dee87c4ee04a7c8.zip | |
Minor tweak to proxy code (some URLs were not correctly formed).
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -3223,7 +3223,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 3223 | /* skip to where the proxy/ string starts */ | 3223 | /* skip to where the proxy/ string starts */ |
| 3224 | raw_path += xs_str_in(raw_path, proxy_prefix); | 3224 | raw_path += xs_str_in(raw_path, proxy_prefix); |
| 3225 | 3225 | ||
| 3226 | xs *url = xs_replace(raw_path, proxy_prefix, "https:/" "/"); | 3226 | xs *url = xs_replace_n(raw_path, proxy_prefix, "https:/" "/", 1); |
| 3227 | xs *hdrs = xs_dict_new(); | 3227 | xs *hdrs = xs_dict_new(); |
| 3228 | 3228 | ||
| 3229 | hdrs = xs_dict_append(hdrs, "user-agent", USER_AGENT); | 3229 | hdrs = xs_dict_append(hdrs, "user-agent", USER_AGENT); |