cpp-httplib breaking changes
Updated December 4, 2026
On this page
Latest version 0.69.0, released November 30, 2026. Source repository
cpp-httplib 0.69.0 breaking changes
- Behavior changed
Client
When a server offers both qop=auth and qop=auth-int, the client now answers with auth, as curl does. github.com - Configuration changed
cpp-httplib now requires Mbed TLS built with MBEDTLS_THREADING_C and stops with an #error otherwise. Rebuild Mbed TLS with that option, or define CPPHTTPLIB_MBEDTLS_SINGLE_THREADED if it is only used from one thread. github.com
cpp-httplib 0.68.0 breaking changes
- Behavior changed
Client
A redirect is followed only to an http or https URL, or a reference starting with /. Any other Location is refused. github.com - Behavior changed
SSLServer
A connection waiting for a worker when stop() is called is now closed with its TLS handshake cut short, where v0.67.0 still served it. Code relying on that connection being served must adjust. github.com - Behavior changed
ws.WebSocket.read
A read timeout inside a frame or between message fragments now returns Timeout and the next read() continues the message, instead of failing the read and closing the connection. github.com - Default changed
ws.WebSocket.TCP_NODELAY
WebSocket connections enable TCP_NODELAY by default. Define CPPHTTPLIB_WEBSOCKET_TCP_NODELAY as false to keep Nagle's algorithm. github.com
cpp-httplib 0.67.0 breaking changes
- Behavior changed
A kept-alive connection with unread bytes that belong to no request is now closed, and the next request opens a new connection. Code that relied on reusing such a connection may see extra connections, including after idle TLS messages. github.com - Behavior changed
When the body is compressed under set_compress(true) or sent chunked, a Content-Length passed with the request is now dropped, so the library sends a length matching the body it writes or none for chunked bodies. github.com - Behavior changed
Headers.erase
When the key refers to an entry of the same Headers object, erase now removes all matching fields rather than leaving some behind and removing another field. github.com
cpp-httplib 0.66.0 breaking changes
- Behavior changed
httplib.Client.set_address_family
Redirects from a client using AF_UNIX stay on the unix socket unless the Location host is not localhost; code relying on the old redirect behavior may see different connections. github.com
cpp-httplib 0.65.0 breaking changes
- Behavior changed
A relative Location whose resolved path starts with // is now kept on the current host instead of being treated as an authority and redirected to another host. github.com - Behavior changed
A Range header with a unit other than bytes is now ignored and the full response is sent, instead of being answered with 416. github.com - Behavior changed
Request.params
With set_follow_location(true), parameters in Request::params are no longer appended to a redirect target. Code that relies on them being sent on redirect must add them to the Location URL itself. github.com
cpp-httplib 0.64.0 breaking changes
- Behavior changed
An EOF without close_notify is now rejected in the Mbed TLS and wolfSSL read, so responses cut short by the connection close now fail. github.com - Behavior changed
Roots set to Never Trust, or trusted only for other purposes, are no longer used to verify TLS servers. github.com - Behavior changed
A mount point no longer serves any path with a segment ending in a dot or a space, on every platform. On Windows it also refuses paths containing a colon. github.com - Behavior changed
A path given to a plain HTTP proxy must start with /, otherwise the request fails with Error::Write, including OPTIONS *. github.com - Behavior changed
Certificates that name their host only in the Common Name are now rejected on all TLS backends. github.com - Behavior changed
Bytes such as size lines, extensions and CRLF now count against a bound for chunked bodies on the server and the client. github.com - Behavior changed
Other methods now receive the whole response even when a Range header is sent. github.com - Behavior changed
A request whose Transfer-Encoding lists a coding besides a single chunked is answered with 501 and the connection is closed. github.com - Behavior changed
set_error_handler
An exception handler that sets no status now answers 500 instead of 200 or the status the throwing handler had set. set_error_handler() also runs for these exceptions. github.com - Behavior changed
set_file_extension_and_mimetype_mapping
The extension is lowercased and a leading dot is dropped when a mapping is set, so the mapping matches files case-insensitively. github.com
And 5 more in this version. Sign up to see every change
Older versions
49 older versions, each with its first changes. Sign up to see every change
Show 49 older versions
cpp-httplib 0.63.0 breaking changes
- Behavior changed
A mount point now serves a path only when it has no '.', '..' or empty segment other than a trailing '/'. Other paths get 404 instead of being resolved through the file system. github.com - Behavior changed
The OpenSSL backend now verifies the server certificate and host name during the handshake unless a session verifier is set. Certificates that fail report new ssl_error() values on every backend. github.com
And 4 more in this version.
cpp-httplib 0.62.0 breaking changes
- Behavior changed
Userinfo and backslashes in a URL authority are no longer accepted. Such a URL now produces an invalid client whose requests fail with Error::Connection. github.com - Behavior changed
The server now serves only regular files, so devices and other non-regular files are no longer served. github.com
And 10 more in this version.
cpp-httplib 0.61.0 breaking changes
- Behavior changed
A request with more than one Host line or an invalid Host byte is now answered with 400 and the connection is closed. github.com - Behavior changed
Proxy-Authorization is now sent when either the proxy username or password is set, not only when both are. Cross-host redirects also carry the proxy credentials in this case. github.com
And 1 more in this version.
cpp-httplib 0.60.1 breaking changes
- Behavior changed
ssl_backend_error
On a rejected chain, ssl_backend_error() now returns the chain policy HRESULT instead of the trust status bit mask. Code that parsed the old bit mask must change. github.com
cpp-httplib 0.60.0 breaking changes
- Behavior changed
The client now fails the handshake with Error::WebSocketHandshake when the server picks a subprotocol the client did not offer. github.com - Behavior changed
An IP host is matched only against iPAddress certificate entries, and a host name only against dNSName entries. Certificates that matched before may now be rejected. github.com
And 2 more in this version.
cpp-httplib 0.59.0 breaking changes
- Behavior changed
Request lines containing bytes that are not VCHAR or obs-text are now rejected with 400 instead of being routed. The client also rejects such bytes when writing the request line. github.com - Behavior changed
A non-token algorithm value from the server's challenge is now replaced with MD5 in the Digest Authorization header. Quoted values are escaped. github.com
And 10 more in this version.
cpp-httplib 0.57.1 breaking changes
- Behavior changed
The client now fails with Error::Write for methods containing spaces, CR/LF, or that are empty, instead of sending a malformed request line. github.com
cpp-httplib 0.57.0 breaking changes
- Behavior changed
The server no longer sends 100 Continue as soon as it sees the Expect header. It is sent only when the body is read, and requests answered without reading the body now close the connection without it. github.com - Behavior changed
Chunk-size lines containing control characters such as a bare LF are now rejected instead of being accepted as extension text. Clients or intermediaries that sent such input must be fixed; ordinary chunk extensions still work. github.com
And 3 more in this version.
cpp-httplib 0.56.0 breaking changes
- Behavior changed
A response whose handler already set Content-Encoding is sent as is. Vary: Accept-Encoding is now added only for a coding the server chose, so handlers must set Vary themselves. github.com - Behavior changed
Responses with both headers, unless HEAD, 204 or 304 or Content-Length is zero, now fail with Error::Read in both the buffered and streaming paths. github.com
And 4 more in this version.
cpp-httplib 0.54.0 breaking changes
- Behavior changed
Header values that previously matched by substring or whole-field comparison now match only complete tokens, so some requests are handled differently. github.com - Behavior changed
All challenges are now read rather than only the first, so a Digest challenge after a Basic one is no longer hidden. github.com
And 3 more in this version.
cpp-httplib 0.53.0 breaking changes
- Behavior changed
Server.process_and_close_socket
Connections now half-close and drain pending bytes (bounded to 100ms / 1MB) before the final close, which changes how the peer sees connection teardown. github.com - Behavior changed
set_sni
set_sni() now takes a verify_hostname flag; callers relying on the previous signature may need updating. github.com
And 2 more in this version.
cpp-httplib 0.52.0 breaking changes
- Removed
insert
The insert(hint, value) overload is gone. Use the remaining insert overloads instead. github.com - Behavior changed
A Transfer-Encoding header listing chunked before gzip is now rejected with 400 and the connection is closed, instead of being read as chunked. github.com
And 7 more in this version.
cpp-httplib 0.51.0 breaking changes
- Behavior changed
Cookie and Cookie2 headers are no longer forwarded when a redirect goes to a different origin. Code that depends on cookies crossing origins must set them again. github.com - Behavior changed
X-Forwarded-For is now used only when the connecting peer is listed in trusted_proxies_. Direct clients can no longer set remote_addr through this header. github.com
And 7 more in this version.
cpp-httplib 0.50.0 breaking changes
- Behavior changed
DataSink.done_with_trailer
Trailer fields written via done_with_trailer() are now validated, and invalid names or values are dropped without an error, matching set_header(). Code that relies on such trailers appearing in the response must be changed. github.com - Signature changed
Client.Get
Calls that pass headers as a braced initializer list, such as cli.Get(path, {{...}}), now fail to compile with an ambiguous call error. Wrap the argument explicitly, for example in Headers{{...}}. github.com
cpp-httplib 0.49.0 breaking changes
- Behavior changed
Double quotes, CR and LF in multipart field names and filenames are now percent-encoded when serializing multipart/form-data bodies. Code that relied on the old unescaped output for such inputs will see different bytes on the wire. github.com - Behavior changed
The Host header of the WebSocket handshake no longer includes port 80 for ws or 443 for wss. Servers or routing that depended on the explicit port may behave differently. github.com
And 2 more in this version.
cpp-httplib 0.48.0 breaking changes
- Behavior changed
IP-literal hosts no longer fall back to the certificate Common Name on Mbed TLS and wolfSSL, and IPv6 iPAddress SANs are now matched. Certificates relying on CN matching for IP hosts will now fail verification. github.com - Behavior changed
decode_query_component
A % followed by non-hex characters is now passed through literally instead of being decoded as an escape. Code relying on the old lenient decoding must be updated. github.com
cpp-httplib 0.47.0 breaking changes
- Behavior changed
Chain verification is no longer skipped for IP hosts, and SNI is no longer sent for IP hosts on Mbed TLS and wolfSSL. Code relying on the previous bypass may now fail certificate checks. github.com - Behavior changed
WebSocketClient
A custom CA now stays exclusive for WebSocketClient. Call enable_system_ca(true) to load system CA certificates alongside the custom CA. github.com
cpp-httplib 0.46.0 breaking changes
- Behavior changed
The 401/407 digest retry now happens only when the response comes from a proxy hop, so a 407 inside an HTTPS CONNECT tunnel no longer triggers a credential retry. github.com
cpp-httplib 0.45.1 breaking changes
- Configuration changed
CPPHTTPLIB_USE_CERTS_FROM_MACOSX_KEYCHAIN
Defining CPPHTTPLIB_USE_CERTS_FROM_MACOSX_KEYCHAIN on iOS, tvOS or watchOS now fails with an #error; use set_ca_cert_path() with a bundled CA file instead. github.com - Signature changed
Server.stop
Server::stop() is declared noexcept, so code that relies on it being able to throw must change. github.com
cpp-httplib 0.44.0 breaking changes
- Behavior changed
parse_header
HTTP request header values are now kept as opaque octets instead of being percent-decoded. Code that needs URI semantics on a header value must call decode_uri_component() or decode_path_component() on it explicitly. github.com
cpp-httplib 0.43.0 breaking changes
- Removed
The release removes deprecated APIs without naming them in the notes. Code that still calls deprecated cpp-httplib APIs may fail to compile after upgrading and should be checked against the 0.43.0 headers. github.com
cpp-httplib 0.41.0 breaking changes
- Removed
res.user_data
The httplib::any based res.user_data is replaced by a new UserData class providing set() and get<T>(). Code using res.user_data must be migrated to the new API. github.com
cpp-httplib 0.40.0 breaking changes
- Behavior changed
The library now consumes request bodies and rejects requests that combine an invalid Content-Length with Transfer-Encoding, to prevent request smuggling. Code that sent or relied on such requests must fix them. github.com
cpp-httplib 0.38.0 breaking changes
- Behavior changed
Accept-Encoding
The server selects encodings by quality value, which may change which content encoding is chosen for responses. github.com - Behavior changed
static file server
Symlinks that point outside the mount directory are now detected and rejected, so files reached through them will no longer be served. github.com
cpp-httplib 0.37.2 breaking changes
- Behavior changed
A security fix restores TLS certificate verification when a proxy redirect occurs; code relying on the bypassed behavior may now fail verification. github.com
cpp-httplib 0.35.0 breaking changes
- Configuration changed
Loading system certificates from the macOS Keychain is now an opt-out feature, so it is enabled by default. Users who do not want this must disable it explicitly. github.com
cpp-httplib 0.34.0 breaking changes
- Behavior changed
httplib.make_file_provider
The documentation now states that make_file_provider uploads use chunked transfer encoding rather than Content-Length. Code using it may need review of expected request headers. github.com
cpp-httplib 0.33.0 breaking changes
- Removed
The macOS select() fallback path was removed; builds on macOS now rely on the remaining supported I/O path. github.com
cpp-httplib 0.31.0 breaking changes
- Renamed
Result.ssl_openssl_error
Result::ssl_openssl_error() is renamed to ssl_backend_error(). Update calls to the new name. github.com - Default changed
CPPHTTPLIB_PAYLOAD_MAX_LENGTH
Payloads larger than 100MB now fail with ExceedMaxPayloadSize. Set CPPHTTPLIB_PAYLOAD_MAX_LENGTH to a larger value if you need bigger payloads. github.com
And 2 more in this version.
cpp-httplib 0.28.0 breaking changes
- Configuration changed
The CMake build no longer defines BUILD_SHARED_LIBS; projects that relied on it being set must use the new HTTPLIB_SHARED option to control shared library builds. github.com
cpp-httplib 0.26.0 breaking changes
- Configuration changed
Meson build option names were corrected in this release; build scripts that pass the old option names may need updating. github.com
cpp-httplib 0.25.0 breaking changes
- Removed
The build now enforces a Windows 10 minimum. Users on older Windows versions must upgrade to Windows 10 or later. github.com
cpp-httplib 0.23.0 breaking changes
- Removed
Windows 8 and older Windows versions are no longer supported. Users on those systems must upgrade the operating system or stay on an older release. github.com - Removed
The library now supports only 64-bit environments. 32-bit builds must stay on an older release. github.com
And 1 more in this version.
cpp-httplib 0.20.0 breaking changes
- Removed
SSLInit
SSLInit was removed in this release, so code that calls it will no longer compile and must drop the call. github.com - Behavior changed
Header field names containing spaces are now rejected, so code sending such names will see them fail validation. github.com
cpp-httplib 0.18.0 breaking changes
- Default changed
The default read and write timeout settings for server and client were made separate. Code relying on the previous combined default timeout behavior may need to set timeouts explicitly. github.com
cpp-httplib 0.17.0 breaking changes
- Default changed
CPPHTTPLIB_KEEPALIVE_MAX_COUNT
The default value of CPPHTTPLIB_KEEPALIVE_MAX_COUNT is now 100. Code that depends on the previous default may see different connection reuse behavior. github.com - Signature changed
get_header_
The get_header_ methods on Request and Response changed in a breaking way. The release note is truncated, so check the full release notes for the new signature before updating calls. github.com
cpp-httplib 0.15.0 breaking changes
- Behavior changed
Requests whose paths contain embedded NUL bytes are now rejected as invalid instead of being handled. Code that relied on such paths must change how it sends or checks them. github.com
cpp-httplib 0.14.0 breaking changes
- Behavior changed
The release notes label this as a breaking change but do not say what changed. Check issue 1638 before upgrading. github.com
cpp-httplib 0.13.0 breaking changes
- Behavior changed
The last redirected location is no longer overwritten, which the release notes call a breaking change. Code that relied on the previous redirect location value may need to be updated. github.com
cpp-httplib 0.12.0 breaking changes
- Removed
DataSink.is_writable
DataSink::is_writable() was removed in v0.12.0, so code calling it will no longer compile and must stop using it. github.com
cpp-httplib 0.11.2 breaking changes
- Configuration changed
The build now sets the shared library soversion to major.minor, so dynamically linked binaries may need relinking against the new library name. github.com
cpp-httplib 0.11.0 breaking changes
- Removed
The library no longer supports Visual Studio 2013 and older compilers. Users on those compilers must upgrade their toolchain. github.com - Signature changed
The exception handler type changed to use std::exception_ptr. Handlers written against the previous signature must be updated. github.com
And 1 more in this version.
cpp-httplib 0.10.2 breaking changes
- Behavior changed
Connection timeouts are reported as their own event rather than as a general connection failure, so code that handles connection errors may need to handle this event too. github.com
cpp-httplib 0.9.0 breaking changes
- Signature changed
The content provider resource releaser callback now takes a bool success parameter indicating whether all content was sent to the client successfully. Update existing releaser callbacks to accept this parameter. github.com
cpp-httplib 0.8.2 breaking changes
- Signature changed
The release changed the return type expected from handlers to HandleResponse. Update handler functions to return HandleResponse. github.com
cpp-httplib 0.6.0 breaking changes
- Signature changed
ContentProvider
Content providers must return a boolean; returning false cancels the streaming process. Existing providers without a boolean return must be updated. github.com
cpp-httplib 0.4.0 breaking changes
- Behavior changed
This release includes a breaking change, but the notes do not say which API is affected. Review the release before upgrading. github.com
cpp-httplib 0.3.1 breaking changes
- Behavior changed
multipart content reader interface
The multipart content reader interface was improved in a way that breaks existing code. Update code that reads multipart content to the new interface. github.com
cpp-httplib 0.3.0 breaking changes
- Behavior changed
MultipartFile
The MultipartFile structure was modified in a way that breaks existing code. Update code that uses MultipartFile to match the new structure. github.com
Related packages
- cpp-httplib on Homebrew
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.