Remove unnessary early header write

This commit is contained in:
Jan-Eric Hellenberg
2021-04-28 10:06:07 +02:00
committed by Felix Auringer
parent 2d71584464
commit e14e9c9229
3 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import (
// always returns a router for the newest version of our API. We
// use gorilla/mux because it is more convenient than net/http, e.g.
// when extracting path parameters.
func NewRouter() *mux.Router {
func NewRouter() http.Handler {
router := mux.NewRouter()
// this can later be restricted to a specific host with
// `router.Host(...)` and to HTTPS with `router.Schemes("https")`