pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/libfetch/files



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Apr 16 10:15:06 UTC 2026

Modified Files:
        pkgsrc/net/libfetch/files: http.c

Log Message:
libfetch: sync with src/

comments


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 pkgsrc/net/libfetch/files/http.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/libfetch/files/http.c
diff -u pkgsrc/net/libfetch/files/http.c:1.47 pkgsrc/net/libfetch/files/http.c:1.48
--- pkgsrc/net/libfetch/files/http.c:1.47       Thu Apr 16 08:32:12 2026
+++ pkgsrc/net/libfetch/files/http.c    Thu Apr 16 10:15:06 2026
@@ -1,4 +1,4 @@
-/*     $NetBSD: http.c,v 1.47 2026/04/16 08:32:12 wiz Exp $    */
+/*     $NetBSD: http.c,v 1.48 2026/04/16 10:15:06 wiz Exp $    */
 /*-
  * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
  * Copyright (c) 2003 Thomas Klausner <wiz%NetBSD.org@localhost>
@@ -768,7 +768,7 @@ http_connect(struct url *URL, struct url
        if (purl && strcasecmp(URL->scheme, SCHEME_HTTPS) != 0) {
                URL = purl;
        } else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0) {
-
+               /* can't talk http to an ftp server */
                /* XXX should set an error code */
                return (NULL);
        }
@@ -797,7 +797,7 @@ http_connect(struct url *URL, struct url
                        http_seterr(conn->err);
                        goto ouch;
                }
-               /* Read and discard the rest of the proxy response */
+               /* Read and discard the rest of the proxy response (if any) */
                do {
                        switch ((h = http_next_header(conn, &p))) {
                        case hdr_syserror:



Home | Main Index | Thread Index | Old Index