Skip to content

vendor : update cpp-httplib to 0.45.0#23103

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
cabelo:cpp-httplib-0.45.0
May 16, 2026
Merged

vendor : update cpp-httplib to 0.45.0#23103
ggerganov merged 1 commit into
ggml-org:masterfrom
cabelo:cpp-httplib-0.45.0

Conversation

@cabelo
Copy link
Copy Markdown
Contributor

@cabelo cabelo commented May 15, 2026

Overview

Additional information

Requirements

What's Changed

v0.45.0

Bug fixes

  • Fix crash on empty / comma-only X-Forwarded-For when set_trusted_proxies() is configured. get_client_ip() previously called front() on a vector that was empty whenever the header tokenized to zero segments ("", ",", ", , ,"); it now returns an empty string so process_request() falls back to the connection-level remote address instead of crashing
  • Fix keep-alive corruption on requests without a framed body. The post-response drain ran for any request that expect_content() accepted, so a method like DELETE /items/1 with no Content-Length and no Transfer-Encoding would, on a persistent connection, let read_content consume bytes belonging to the next pipelined request — making the second request appear to vanish. The drain now only runs when the request actually has a framed body (Content-Length or chunked). The non-SSL "stray-bytes → 413" payload-limit check is likewise limited to non-persistent connections, since on keep-alive any pending bytes may be the next request rather than an unframed body

Internal

  • Extract detail::has_framed_body() and detail::is_connection_persistent() helpers used by the keep-alive fix above Bug fixes

@cabelo cabelo requested a review from ggerganov as a code owner May 15, 2026 14:41
@github-actions github-actions Bot added script Script related python python script changes labels May 15, 2026
@ggerganov ggerganov merged commit 18675b6 into ggml-org:master May 16, 2026
53 checks passed
dandm1 pushed a commit to dandm1/llama.cpp that referenced this pull request May 16, 2026
xxmustafacooTR pushed a commit to xxPlayground/llama-cpp-turboquant that referenced this pull request May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python python script changes script Script related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants