hurdextras-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

httpfs http.c


From: Samuel Thibault
Subject: httpfs http.c
Date: Wed, 9 Sep 2020 13:12:36 -0400 (EDT)

CVSROOT:        /sources/hurdextras
Module name:    httpfs
Changes by:     Samuel Thibault <sthibaul>      20/09/09 13:12:36

Modified files:
        .              : http.c 

Log message:
        httpfs: fix HEAD request message
        
        The HEAD request used to fetch metadata about a file via HTTP
        contains a trailing 0x20 character which will cause modern HTTP/1.1
        servers to reject the request.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/httpfs/http.c?cvsroot=hurdextras&r1=1.3&r2=1.4

Patches:
Index: http.c
===================================================================
RCS file: /sources/hurdextras/httpfs/http.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- http.c      25 Jan 2013 00:50:58 -0000      1.3
+++ http.c      9 Sep 2020 17:12:36 -0000       1.4
@@ -110,7 +110,7 @@
        }
 
        /* Send a HEAD request find header length */
-       sprintf(buffer,"HEAD %s HTTP/1.0 \n\n",node->conn_req);
+       sprintf(buffer,"HEAD %s HTTP/1.0\n\n",node->conn_req);
        towrite = strlen (buffer);
        written = TEMP_FAILURE_RETRY (write (*fd, buffer, towrite));
        if ( written == -1 || written < towrite )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]