When receiving HTTP, the header callback is called at the end with just a CRLF, as specified in CURLOPT_HEADERFUNCTION(3).
But for a file, the ending CRLF comes attached to the Last-Modified header (if there’s a body). I find it unexpected to be fed a header with two CRLFs. -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html