What header does the server use to return jpg and png to the browser?

I'm writing a small http server,since I haven't returned anything other than html text yet. As a header, I just sent "HTTP/1.1 200 OK\n\n", what should I add that the browser read the images ?

Author: Denver Toha, 2019-12-22

1 answers

HTTP/1.0 200 OK
Content-Type: image/png
Content-Length: <размер файла в байтах>

{данные}

And for jpeg Content-Type: image/jpeg, respectively.

 3
Author: Fat-Zer, 2019-12-22 15:10:15