From 5c84a47429b85d0d3dce5a178b0daddd5e11511d Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Tue, 11 Jun 2024 02:42:53 +0200 Subject: [PATCH] Added support of the `onUnknownProfileRespondWithUuid` on Chrly --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 239947f..1fdea0d 100644 --- a/main.go +++ b/main.go @@ -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) @@ -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)