]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
common,server: handle bracketed IPv6 literals in URL authority (#25140)
authorPascal <redacted>
Tue, 30 Jun 2026 14:16:44 +0000 (16:16 +0200)
committerGitHub <redacted>
Tue, 30 Jun 2026 14:16:44 +0000 (16:16 +0200)
commit799fcc04a5bbe2823e698b9e524f5a6cd0c594b6
treeb633a61bac5a1a958f848a76312860f212169622
parent931eb37f8cac5a6ca84d5641445d460af2a9d7dd
common,server: handle bracketed IPv6 literals in URL authority (#25140)

* common,server: handle bracketed IPv6 literals in URL authority

Parse the [host]:port form (RFC 3986) and bracket IPv6 hosts when
formatting a URL authority: listening log, proxy Host header, proxy
log, client rebuild. The per-request remote_addr stays bare.

* common: restore unsupported scheme throw in url parser

Address @ngxson review: keep the explicit reject in port resolution so
the block stays self-contained. Non-http(s) schemes still throw (also
gated at the top of common_http_parse_url).
common/http.h
tools/server/server-cors-proxy.h
tools/server/server-http.cpp
tools/server/server-models.cpp