Skip to content

Commit af03250

Browse files
committed
fix: cors error due to underlying response writer not getting written into
1 parent 4178bec commit af03250

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cors/middleware.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ func CORS(options *cors) func(h http.Handler) http.Handler {
2222
h.ServeHTTP(w, r)
2323
} else {
2424
w.WriteHeader(options.optionsSuccessStatus)
25+
server.Write(w)
2526
}
2627
} else {
2728
options.request(w, r)

0 commit comments

Comments
 (0)