Skip to content

Commit

Permalink
Added support of the onUnknownProfileRespondWithUuid on Chrly
Browse files Browse the repository at this point in the history
  • Loading branch information
erickskrauch committed Jun 11, 2024
1 parent 5ee1a88 commit 5c84a47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ func main() {
panic(err)
}

profileUrl := "http://skinsystem.ely.by/profile/" + username
profileUrl := fmt.Sprintf("http://skinsystem.ely.by/profile/%s?onUnknownProfileRespondWithUuid=%s", username, uuid)
if request.FormValue("unsigned") == "false" {
profileUrl += "?unsigned=false"
profileUrl += "&unsigned=false"
}

profileResp, err := http.Get(profileUrl)
Expand All @@ -106,7 +106,7 @@ func main() {
return
}

if profileResp.StatusCode != http.StatusOK && profileResp.StatusCode != http.StatusNoContent {
if profileResp.StatusCode != http.StatusOK {
sentry.CaptureException(fmt.Errorf("received unsuccessful response code from Chrly servicer: %d. error is %w", profileResp.StatusCode, err))
response.WriteHeader(500)

Expand Down

0 comments on commit 5c84a47

Please sign in to comment.