News for hackers. Stuff that matters.
Re:Show HN: Micro HTTP server in 22 lines of C by deathanatos on Saturday July 31, 2021 @11:00AM (#28018678)
Two CRLF pairs (one to terminate the status line, one to terminate the (empty) headers), which this is one CR short of. Trivially fixable, though it'd mess up the P slightly…
Re:Show HN: Micro HTTP server in 22 lines of C by jpegqs on Sunday August 01, 2021 @12:32AM (#28023813)
Thanks for noticing this, I fixed it on github. However, it seems that browsers are simply ignoring CRs. So that "\n\n" is enough.
Re:Show HN: Micro HTTP server in 22 lines of C by deathanatos on Monday August 02, 2021 @01:06PM (#28039409)
Yeah, I would expect browsers to do a number of non-standard things. It is possible with most of them to construct & send malformed requests.