Skip to content

Commit 874d743

Browse files
author
bloom
committed
server: update AddAltSvcHeader middleware
1 parent cd7a167 commit 874d743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/middlewares/alt_svc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
func AddAltSvcHeader() func(next http.Handler) http.Handler {
1010
return func(next http.Handler) http.Handler {
1111
fn := func(res http.ResponseWriter, req *http.Request) {
12-
res.Header().Add(httpx.HeaderAltSvc, `h3=":443"; ma=86400`)
1312
next.ServeHTTP(res, req)
13+
res.Header().Add(httpx.HeaderAltSvc, `h3=":443"; ma=86400`)
1414
}
1515

1616
return http.HandlerFunc(fn)

0 commit comments

Comments
 (0)