Skip to content

Commit

Permalink
fix http parser
Browse files Browse the repository at this point in the history
Signed-off-by: Sean T Canavan <[email protected]>
  • Loading branch information
seantcanavan committed Jul 17, 2023
1 parent 88b4bb9 commit 81aaced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda_router/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ func (l *Router) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set(CORSHeadersHeaderKey, corsHeaders)
}

if corsMethods == "" {
if corsMethods != "" {
w.Header().Set(CORSMethodsHeaderKey, corsMethods)
}

if corsOrigins == "" {
if corsOrigins != "" {
w.Header().Set(CORSOriginHeaderKey, corsOrigins)
}

Expand Down

0 comments on commit 81aaced

Please sign in to comment.