thecatalinstan / Criollo

A powerful Cocoa web framework and HTTP server for macOS, iOS and tvOS.
https://criollo.io/
MIT License
290 stars 51 forks source link

Fixed HTTP Header 'host' parameter parsing #72

Open itsjunetime opened 3 years ago

itsjunetime commented 3 years ago

Since HTTP header fields are case-insensitive (see here), we have to check for both Host and host for the http host header. This checks for the existence of host: if Host: returns nothing.