gen.pl: error on duplicated See-Also fields

Updated http2.d accordingly.

Closes #10925
This commit is contained in:
Daniel Stenberg 2023-04-11 11:15:33 +02:00
parent 452b8e39ef
commit a8fbdb461c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 6 additions and 3 deletions

View File

@ -241,6 +241,10 @@ sub single {
$protocols=$1;
}
elsif(/^See-also: *(.*)/i) {
if($seealso) {
print STDERR "ERROR: duplicated See-also in $f\n";
return 1;
}
$seealso=$1;
}
elsif(/^Requires: *(.*)/i) {

View File

@ -6,9 +6,8 @@ Protocols: HTTP
Added: 7.33.0
Mutexed: http1.1 http1.0 http2-prior-knowledge http3
Requires: HTTP/2
See-also: no-alpn
Help: Use HTTP 2
See-also: http1.1 http3
Help: Use HTTP/2
See-also: http1.1 http3 no-alpn
Category: http
Example: --http2 $URL
Multi: mutex