Explorar o código

Don't require a POST binding

Andrew Swistak %!s(int64=6) %!d(string=hai) anos
pai
achega
3c77468637
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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