Skip to content

Commit 67f8083

Browse files
author
Hexawolf
committed
Fix typo in header name
1 parent 9231327 commit 67f8083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ func (s *Server) serveFile(w http.ResponseWriter, r *http.Request) {
349349
// Note that filedrop code is URL prefix-agnostic, so request URI doesn't
350350
// matters much.
351351
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
352-
w.Header().Set("Access-Control-Allowed-Origin", s.Conf.AllowedOrigins)
352+
w.Header().Set("Access-Control-Allow-Origin", s.Conf.AllowedOrigins)
353353
if r.Method == http.MethodPost {
354354
s.acceptFile(w, r)
355355
} else if

0 commit comments

Comments
 (0)