Skip to content
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: etr/libhttpserver
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: feature/FEATURE-security-fixes
Choose a base ref
...
head repository: etr/libhttpserver
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 22 files changed
  • 2 contributors

Commits on Feb 14, 2026

  1. Merge pull request #366 from etr/feature/FEATURE-security-fixes

    Fix 9 security vulnerabilities found in audit
    etr authored Feb 14, 2026
    Configuration menu
    Copy the full SHA
    1a26dfc View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2026

  1. FEATURE-bauth-conditional-compile: Implementation complete

    Add HAVE_BAUTH conditional compilation for basic authentication,
    mirroring the existing HAVE_DAUTH pattern. This allows libhttpserver
    to build against libmicrohttpd installations that lack basic auth
    support.
    
    Changes:
    - configure.ac: Auto-detect MHD_queue_basic_auth_fail_response,
      define HAVE_BAUTH flag and AM_CONDITIONAL, add to summary output
    - src/httpserver/basic_auth_fail_response.hpp: Guard with #ifdef HAVE_BAUTH
    - src/basic_auth_fail_response.cpp: Guard with #ifdef HAVE_BAUTH
    - src/httpserver.hpp: Conditionally include basic_auth_fail_response.hpp
    - src/httpserver/http_request.hpp: Guard get_user(), get_pass(),
      fetch_user_pass() declarations and username/password cache fields
    - src/http_request.cpp: Guard fetch_user_pass(), get_user(), get_pass()
      implementations and basic auth output in operator<<
    - src/httpserver/create_webserver.hpp: Guard basic_auth()/no_basic_auth()
      methods and _basic_auth_enabled member
    - src/httpserver/webserver.hpp: Guard basic_auth_enabled member
    - src/webserver.cpp: Guard basic_auth_enabled initialization
    - src/Makefile.am: Make basic_auth_fail_response conditional on HAVE_BAUTH
    - examples/Makefile.am: Guard basic_authentication and
      centralized_authentication examples behind HAVE_BAUTH
    - test/integ/authentication.cpp: Guard basic auth tests with HAVE_BAUTH
    - test/unit/create_webserver_test.cpp: Guard basic_auth builder test
    etr committed Feb 19, 2026
    Configuration menu
    Copy the full SHA
    0908e48 View commit details
    Browse the repository at this point in the history
  2. Add HAVE_BAUTH guards to remaining files missed in initial commit

    Guard basic auth references in ws_start_stop.cpp, basic.cpp,
    create_test_request_test.cpp, create_test_request.hpp, and
    create_test_request.cpp that would fail to compile when
    libmicrohttpd lacks basic auth support.
    etr committed Feb 19, 2026
    Configuration menu
    Copy the full SHA
    507d29a View commit details
    Browse the repository at this point in the history
  3. Bump version to 0.20.0 and update ChangeLog

    Add Version 0.20.0 header with bauth conditional compilation and
    security fix entries. Bump version in configure.ac to match.
    etr committed Feb 19, 2026
    Configuration menu
    Copy the full SHA
    ae59cc7 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #367 from etr/feature/bauth-conditional-compile

    Add HAVE_BAUTH conditional compilation for basic auth
    etr authored Feb 19, 2026
    Configuration menu
    Copy the full SHA
    95d6df4 View commit details
    Browse the repository at this point in the history
  5. Update ignore

    etr committed Feb 19, 2026
    Configuration menu
    Copy the full SHA
    68bff78 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2026

  1. Add documentation and example for serving binary data from memory

    The existing string_response already supports binary content (std::string
    can hold arbitrary bytes), but this was not documented or demonstrated
    anywhere. This gap caused users to believe a new response type was needed
    (see PR #368).
    
    - Add a note to the README's string_response description clarifying
      binary data support
    - Add a new "Serving binary data from memory" section with inline example
    - Add examples/binary_buffer_response.cpp as a complete, buildable example
      that serves a PNG image from an in-memory buffer
    - Register the new example in examples/Makefile.am
    
    https://claude.ai/code/session_01S3BvBrSoNvUhpYTyhPYCjJ
    claude committed Feb 27, 2026
    Configuration menu
    Copy the full SHA
    97bd4b1 View commit details
    Browse the repository at this point in the history
  2. Fix CI: add ChangeLog entry and missing include <utility>

    Add ChangeLog entry for the binary buffer example to satisfy the
    ChangeLog Check workflow. Add missing #include <utility> for
    std::move to fix cpplint warning.
    
    https://claude.ai/code/session_01S3BvBrSoNvUhpYTyhPYCjJ
    claude committed Feb 27, 2026
    Configuration menu
    Copy the full SHA
    6fa84e8 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #369 from etr/claude/review-pr-368-SXvkG

    Add documentation and example for serving binary data from memory
    etr authored Feb 27, 2026
    Configuration menu
    Copy the full SHA
    6c115f3 View commit details
    Browse the repository at this point in the history
Loading