drashland / drash

A microframework for building JavaScript HTTP applications. Runtime-agnostic. Strongly typed.

Home Page:https://drash.land/drash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: 406 thrown for empty string accept header

crookse opened this issue · comments

Was doing benchmarks with autocannon and wrk and received 406s. this was due to the accept header being "" which made the request handler think it had to go through the accept header flow -- returning 406s.

Need to check for empty string before running through the accept header flow.