Skip to content

Commit

Permalink
fixup: len("Unknown") > 2
Browse files Browse the repository at this point in the history
  • Loading branch information
zifnab06 committed Feb 6, 2024
1 parent cba3f53 commit 7b7431b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func main() {
return
}

if len(stat.Country) != 2 {
if len(stat.Country) != 2 && stat.Country != "Unknown" {
w.WriteHeader(http.StatusBadRequest)
w.Header().Add("Content-Type", "text/plain")
w.Write([]byte("country must be a two letter iso code"))
Expand Down

0 comments on commit 7b7431b

Please sign in to comment.