mirror of
https://github.com/xroche/httrack.git
synced 2026-07-23 17:19:17 +03:00
Three independent low-risk items under tracking issue #453: - HTTP status enum/reason map: add 429 (Too Many Requests) and 451 (Unavailable For Legal Reasons); appended to the HTTPStatusCode enum (installed header, tail-append only) and to infostatuscode_const(). - Drop the 1990s relic port 31337 from the local proxy bind fallback list. - Pin a TLS protocol floor (TLS1.2 via SSL_CTX_set_min_proto_version, with an SSL_OP_NO_* fallback for OpenSSL < 1.1.0) so obsolete SSLv3/TLS1.0/1.1 aren't negotiated. No cert verification added: that remains by design. Adds a -#test=status engine self-test (01_engine-status.test) asserting the reason phrases for 429/451. Signed-off-by: Xavier Roche <roche@httrack.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
8 lines
174 B
Bash
Executable File
8 lines
174 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
|
|
set -euo pipefail
|
|
|
|
# HTTP status -> reason phrase, including the modern 429/451 (#453).
|
|
httrack -O /dev/null -#test=status run | grep -q "status self-test OK"
|