Skip to content

Commit

Permalink
Merge pull request #75 from thenetimp/fix-broken-path
Browse files Browse the repository at this point in the history
fixed check so that if fails if either path or url is empty instead o…
  • Loading branch information
thoas authored Jun 18, 2017
2 parents 2486af2 + eaef6c1 commit 5b3fcd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/parsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func ParametersParser() gin.HandlerFunc {

c.Set("parameters", parameters)
} else {
if c.Query("url") == "" {
if c.Query("url") == "" && c.Query("path") == "" {
c.String(http.StatusBadRequest, "Request should contains parameters or query string")
c.Abort()
return
Expand Down

0 comments on commit 5b3fcd4

Please sign in to comment.