Luukdegram / apple_pie

Basic HTTP server implementation in Zig
MIT License
163 stars 21 forks source link

Handle HTTP/1.0 client persistent connection correctly #55

Open Luukdegram opened 3 years ago

Luukdegram commented 3 years ago

According to https://datatracker.ietf.org/doc/html/rfc2068#section-19.7.1, an HTTP/1.0 client is allowed to have a persistent connection using the Connection: keep-alive header. This means that we should verify/check this header also for HTTP/1.0 connections, and not only for 1.1.