You've already forked cpp-httplib
The access log took $body_bytes_sent from res.body, which stays empty for a static file because it is sent by a content provider. Every file was logged as 0 bytes. Use the Content-Length of the response instead, and 0 for HEAD.