소스 검색

Don't require a POST binding

Andrew Swistak 6 년 전
부모
커밋
3c77468637
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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