Skip to content

Commit

Permalink
print keys
Browse files Browse the repository at this point in the history
  • Loading branch information
konrad2002 committed Dec 3, 2024
1 parent 0a03cae commit 867c291
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ func actuator(c *gin.Context) {
}

func checkServiceKey(c *gin.Context) error {
println("checking service key...")
fmt.Printf("received: '%s', expected: '%s'\n", c.Request.Header["X-SWIMRESULTS-SERVICE"][0], serviceKey)
if c.Request.Header["X-SWIMRESULTS-SERVICE"][0] == serviceKey {
return nil
}
Expand Down

0 comments on commit 867c291

Please sign in to comment.