DarthSim %!s(int64=6) %!d(string=hai) anos
pai
achega
0346b6b45e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server.go

+ 1 - 1
server.go

@@ -96,7 +96,7 @@ func shutdownServer(s *fasthttp.Server) {
 func writeCORS(rctx *fasthttp.RequestCtx) {
 	if len(conf.AllowOrigin) > 0 {
 		rctx.Response.Header.Set("Access-Control-Allow-Origin", conf.AllowOrigin)
-		rctx.Response.Header.Set("Access-Control-Allow-Methods", "GET, OPTIONs")
+		rctx.Response.Header.Set("Access-Control-Allow-Methods", "GET, OPTIONS")
 	}
 }