I've gotten all functions of server.c to work, including displaying hello.html successfully. However, when I attempt to access cat.html, program is not displaying the image. The chrome developer screen shows no errors and appears below.
I don't see any errors on developer console.
Also, not sure why content type message is appearing in browser on cat.html. It doesn't on hello.html.
Perhaps related, if I attempt to access cat.jpg through server, the downloaded file errors when I attempt to open as below:
My implementation of "respond to client" mirrors the php version except no piping and no headers removed. I've checked permissions on cat.jpg file and they seem fine as -rw-r--r--. Do I need to have a different write function if the file requested is a .jpg instead of an html? Please just point me in the right direction. It's been tons of hours, so far.