Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
fix wrong response code
Browse files Browse the repository at this point in the history
  • Loading branch information
g0rbe committed May 6, 2023
1 parent 329b7b8 commit e0da056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@ func ToolsIsValidGet(c *gin.Context) {
if c.GetHeader("Accept") == "text/plain" {
c.String(http.StatusOK, fmt.Sprintf("%v", domain.IsValid(fqdn)))
} else {
c.JSON(http.StatusForbidden, gin.H{"result": domain.IsValid(fqdn)})
c.JSON(http.StatusOK, gin.H{"result": domain.IsValid(fqdn)})
}
}

0 comments on commit e0da056

Please sign in to comment.