Fixup minor copy-pasta comment typo (#728)

imagess ->  images
This commit is contained in:
Alireza Ghasemi
2024-04-27 12:55:49 +03:30
committed by GitHub
parent c84ab5f6ae
commit c9953a7b05

View File

@@ -36,7 +36,7 @@ func handleImageEndpoint(w http.ResponseWriter, r *http.Request) {
var err error var err error
var resBytes []byte var resBytes []byte
// imagess only accepts POST requests // images only accepts POST requests
if r.Method != "POST" { if r.Method != "POST" {
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) 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) { func handleEditImageEndpoint(w http.ResponseWriter, r *http.Request) {
var resBytes []byte var resBytes []byte
// imagess only accepts POST requests // images only accepts POST requests
if r.Method != "POST" { if r.Method != "POST" {
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) 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) { func handleVariateImageEndpoint(w http.ResponseWriter, r *http.Request) {
var resBytes []byte var resBytes []byte
// imagess only accepts POST requests // images only accepts POST requests
if r.Method != "POST" { if r.Method != "POST" {
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
} }