summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorBrad Kollmyer <bradk@vitalsoft.com>2026-06-21 15:31:42 -0700
committerBrad Kollmyer <bradk@vitalsoft.com>2026-06-21 15:42:29 -0700
commit516eccd41b75bbfd237440d919ef5292215ba30d (patch)
tree299c39981cf5aca33353b477edb454a9b95c9a0f /interface-definitions
parent6c0fd99099a6251a12bc2287d5ba2ab115cd8015 (diff)
downloadvyos-1x-516eccd41b75bbfd237440d919ef5292215ba30d.tar.gz
vyos-1x-516eccd41b75bbfd237440d919ef5292215ba30d.zip
remote: T8829: fall back to GET when HEAD is not supported
HttpC.download() always probed remote URLs with HEAD before GET to discover redirects and Content-Length. Some APIs (e.g. AbuseIPDB) reject HEAD with 405 Method Not Allowed, causing firewall remote-group downloads to fail and leave empty cached list files. Treat HEAD 405/501 as unsupported and proceed with GET using the original URL. When HEAD does not provide Content-Length, read it from the GET response headers instead. Validate available storage after determining file size and before opening the destination file. Log sanitized download errors in vyos-domain-resolver when a remote- group list-file fetch fails. Add unit tests with mock servers that return 405 or 501 on HEAD and 200 on GET.
Diffstat (limited to 'interface-definitions')
0 files changed, 0 insertions, 0 deletions