git: libfetch: don't include fragments in HTTP requests

Michael Neumann mneumann at crater.dragonflybsd.org
Sun Sep 22 01:52:29 PDT 2024


commit c4e275d8e4e2c8b827d1f5bd091f6c26b75052fe
Author: Michael Neumann <mneumann at ntecs.de>
Date:   Sun Sep 22 10:48:50 2024 +0200

    libfetch: don't include fragments in HTTP requests
    
    Fragments are reserved for client-side processing, see
    https://www.rfc-editor.org/rfc/rfc9110.html#section-7.1
    
    Also, some servers don't like to receive HTTP requests with fragments.
    
    ```
    $ fetch 'https://dropbox.com/a/b'
    fetch: https://dropbox.com/a/b: Not Found
    
    $ fetch 'https://dropbox.com/a/b#'
    fetch: https://dropbox.com/a/b#: Bad Request
    ```
    
    Taken-from: https://github.com/freebsd/freebsd-src/commit/1af7d5f389536a2f391153513d95d92ffdf360e4

Summary of changes:
 lib/libfetch/fetch.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c4e275d8e4e2c8b827d1f5bd091f6c26b75052fe


-- 
DragonFly BSD source repository


More information about the Commits mailing list