fukamachi / lack

Lack, the core of Clack
MIT License
148 stars 33 forks source link

fix accesslog's default formatter #44

Closed pa3 closed 4 years ago

pa3 commented 4 years ago

The default formatter of accesslog middleware always outputs dashes for both referer and user-agent headers. Looks like the properties middleware tries to get this data from are not part of environment, and should be taken from headers property instead.

Please, feel free to close it in case you don't like it. :smile:

fukamachi commented 4 years ago

Thanks!