Using Chillispot with Lightttpd

Whilst working on the next release of Brighton Chilli I found that if you attempt to use the stock hostspotlogin.cgi with lighttpd you’ll be presented with the following error message:
ChilliSpot Login Failed
Login must use encrypted connection.

Even though your server is setup correctly.
Apply this patch to your hostspotlogin.cgi & all should be well.