kevburnsjr / microcache

A non-standard HTTP cache implemented as Go middleware
MIT License
155 stars 5 forks source link

Don't write 0 as status code #3

Closed erikdubbelboer closed 5 years ago

erikdubbelboer commented 5 years ago

When the original handler doesn't call WriteHead status will still be 0. When trying to write this status to a real net/http.ResponseWriter it will panic.