Sfoglia il codice sorgente

Don't require a POST binding

Andrew Swistak 6 anni fa
parent
commit
3c77468637
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      web/parse.go

+ 1 - 1
web/parse.go

@@ -39,7 +39,7 @@ import (
 */
 
 type pokemonParseRequest struct {
-	Pokemon []string `json:"pokemon" form:"pokemon" binding:"required"`
+	Pokemon []string `json:"pokemon" form:"pokemon"`
 }
 
 // parse grabs multipart file uploads under the key `pkmn`, aggregates them, and