curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: consistency in received headers

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 12 Jun 2024 07:58:46 +0200 (CEST)

On Wed, 12 Jun 2024, dogma via curl-library wrote:

>> Are you talking about file as in file:// ? They don't have headers.
>
> Yes, file://
>
> In lib/file.c, I can look in file_do(), and I see where it constructs a
> Content-Length header and an Accept-ranges header and a Last-Modified
> header.

Oh right, I forgot about the synthetic headers we provide there.

Now I finally understand what you are talking about. That code does indeed
call the header callback differently.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-06-12