GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Comparing v0.48.0...v0.49.0 · yhirose/cpp-httplib

Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: yhirose/cpp-httplib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading

Uh oh!

There was an error while loading. Please reload this page.

base: v0.48.0
Loading
Loading
...
head repository: yhirose/cpp-httplib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading

Uh oh!

There was an error while loading. Please reload this page.

compare: v0.49.0
Loading
Loading
  • 12 commits
  • 5 files changed
  • 4 contributors

Commits on Jul 2, 2026

  1. Use an unsigned accumulator in base64_encode (#2477)

    * use an unsigned accumulator in base64_encode
    
    * Forward-declare detail::base64_encode for split builds
    @metsw24-max
    metsw24-max authored Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for a7b886b
    • Browse repository at this point
    Copy the full SHA
    a7b886b View commit details
    Browse the repository at this point in the history
  2. Clarify comment on base64_encode accumulator signedness

    @yhirose
    yhirose committed Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for 0ae9388
    • Browse repository at this point
    Copy the full SHA
    0ae9388 View commit details
    Browse the repository at this point in the history
  3. Send query string verbatim when path encoding is disabled (#2479)

    set_path_encode(false) only suppressed encoding of the path part. The
    query part was always run through normalize_query_string(), which
    decodes then re-encodes each key/value pair regardless of the flag.
    
    That round-trip is lossy for pre-encoded payloads: re-encoding emits
    sub-delimiters literally (%2C->",", %24->"$", %3B->";", ...) and turns
    %20 into "+", which a strict RFC 3986 server decodes back as "+"
    (0x2B) rather than a space (0x20), corrupting binary query data.
    
    Honor path_encode_ for the query as well: when disabled, append the
    caller-supplied query verbatim. Add a regression test asserting on the
    raw request target, since the server decodes "+" as space and would
    otherwise mask the difference.
    @sabify
    sabify authored Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for 3fe32b6
    • Browse repository at this point
    Copy the full SHA
    3fe32b6 View commit details
    Browse the repository at this point in the history
  4. Escape quote, CR and LF in multipart field names and filenames

    detail::serialize_multipart_formdata_item_begin() concatenated item.name
    and item.filename into the Content-Disposition quoted-string without any
    escaping. A '"' in either value silently terminated the quoted-string
    early, and embedded CR/LF allowed injecting arbitrary part headers or
    forging part boundaries when a filename comes from external input.
    
    Escape both values following the WHATWG HTML standard ('"' -> %22,
    CR -> %0D, LF -> %0A), which matches what browsers send in
    multipart/form-data bodies. Behavior only changes for inputs that
    previously produced malformed HTTP.
    @yhirose
    yhirose committed Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for 8149bb3
    • Browse repository at this point
    Copy the full SHA
    8149bb3 View commit details
    Browse the repository at this point in the history
  5. Add public MultipartFormDataWriter for multipart body serialization

    Building a multipart/form-data body outside Client::Post/Put/Patch
    (e.g. to feed a custom content provider or compose with other body
    sources) previously required calling several detail:: functions
    directly, which is not a stable interface.
    
    Introduce MultipartFormDataWriter, a small public class that owns the
    boundary and delegates to the existing detail:: serializers: whole-body
    serialization with known content length, and per-part framing
    (item_begin/item_end/finish) for streaming. Also expose
    is_valid_multipart_boundary() so callers using an explicit boundary can
    validate it without exceptions.
    @yhirose
    yhirose committed Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for 9e8b960
    • Browse repository at this point
    Copy the full SHA
    9e8b960 View commit details
    Browse the repository at this point in the history
  6. Escape CR and LF in multipart part content types

    Same header-injection vector as the name/filename fix: item.content_type
    was concatenated into the part's Content-Type header unescaped, so
    embedded CR/LF could inject arbitrary part headers.
    
    Escape CR -> %0D and LF -> %0A via escape_multipart_field with a new
    escape_quote = false mode. '"' is left intact since it is legal in
    Content-Type values (e.g. quoted charset parameters) and appears outside
    a quoted-string context here.
    @yhirose
    yhirose committed Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for f5c8c98
    • Browse repository at this point
    Copy the full SHA
    f5c8c98 View commit details
    Browse the repository at this point in the history
  7. Omit default port from WebSocket handshake Host header (Fix #2480)

    The WebSocket upgrade request always appended ":port" to the Host
    header, violating RFC 6455 Section 4.1 which says the port should be
    included only when it is not the default (80 for ws, 443 for wss).
    Some CDNs alter routing when the Host header carries an explicit
    default port.
    
    Build the Host header with detail::make_host_and_port_string, which
    also brackets IPv6 literal hosts correctly.
    @yhirose
    yhirose committed Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for 45da614
    • Browse repository at this point
    Copy the full SHA
    45da614 View commit details
    Browse the repository at this point in the history
  8. Make ThreadPool idle timeout configurable at runtime (Fix #2481)

    @yhirose
    yhirose committed Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for 32ff75e
    • Browse repository at this point
    Copy the full SHA
    32ff75e View commit details
    Browse the repository at this point in the history
  9. meson: fix build failure on glibc >= 2.34 without standalone libanl (#…

    …2484)
    
    On glibc >= 2.34, getaddrinfo_a is no longer provided by a standalone
    libanl shared library — it is built directly into libc.  Newer
    architectures (e.g. loongarch64, riscv64) have never shipped a separate
    libanl, causing the meson build to fail with:
    
        C++ shared or static library 'anl' not found
    
    Signed-off-by: Pluto Yang <[email protected]>
    @setarcos
    setarcos authored Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for 9a5321a
    • Browse repository at this point
    Copy the full SHA
    9a5321a View commit details
    Browse the repository at this point in the history
  10. Add locale-independent ASCII classification helpers (Fix #2482, Fix #…

    …2483)
    
    std::isalnum and std::isdigit consult the global C locale, so a byte
    like 0xC5 can classify as alphanumeric once an embedder calls
    setlocale() (observed on macOS). HTTP grammars are defined over ASCII,
    so raw bytes must be classified without regard to the locale.
    
    Add detail::is_ascii_digit/is_ascii_alpha/is_ascii_alnum and use them
    at every classification site: multipart boundary validation, token
    checks, URI encoding, range header parsing, is_numeric, is_hex, and
    IPv4 host detection. Also unify the hand-written digit range checks in
    from_chars, URL parsing, and parse_ipv4 onto the same helpers.
    
    With these in place nothing uses <cctype> anymore, so the include is
    dropped.
    @yhirose
    yhirose committed Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for bd455f8
    • Browse repository at this point
    Copy the full SHA
    bd455f8 View commit details
    Browse the repository at this point in the history
  11. Log res.error() in GetWithRange test assertions to diagnose flaky CI …

    …failures
    @yhirose
    yhirose committed Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for a4d7066
    • Browse repository at this point
    Copy the full SHA
    a4d7066 View commit details
    Browse the repository at this point in the history
  12. Release v0.49.0

    @yhirose
    yhirose committed Jul 2, 2026
    Configuration menu
    • View commit details
    • Copy full SHA for 2132205
    • Browse repository at this point
    Copy the full SHA
    2132205 View commit details
    Browse the repository at this point in the history
Loading

This comparison is taking too long to generate.

Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.

You can try running this command locally to see the comparison on your machine:
git diff v0.48.0...v0.49.0

Uh oh!

There was an error while loading. Please reload this page.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.