From c9953a7b051bd661254fb071029553e61c78f8bd Mon Sep 17 00:00:00 2001 From: Alireza Ghasemi Date: Sat, 27 Apr 2024 12:55:49 +0330 Subject: [PATCH] Fixup minor copy-pasta comment typo (#728) imagess -> images --- image_api_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/image_api_test.go b/image_api_test.go index 2eb46f2b..48416b1e 100644 --- a/image_api_test.go +++ b/image_api_test.go @@ -36,7 +36,7 @@ func handleImageEndpoint(w http.ResponseWriter, r *http.Request) { var err error var resBytes []byte - // imagess only accepts POST requests + // images only accepts POST requests if r.Method != "POST" { http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) } @@ -146,7 +146,7 @@ func TestImageEditWithoutMask(t *testing.T) { func handleEditImageEndpoint(w http.ResponseWriter, r *http.Request) { var resBytes []byte - // imagess only accepts POST requests + // images only accepts POST requests if r.Method != "POST" { http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) } @@ -202,7 +202,7 @@ func TestImageVariation(t *testing.T) { func handleVariateImageEndpoint(w http.ResponseWriter, r *http.Request) { var resBytes []byte - // imagess only accepts POST requests + // images only accepts POST requests if r.Method != "POST" { http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) }