diff --git a/Makefile b/Makefile index 46ba537f..0c15c346 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: all build -VERSION := 0.2 +VERSION := 0.2.1 all: build diff --git a/main.go b/main.go index 186c7b0b..8b60ad1d 100644 --- a/main.go +++ b/main.go @@ -105,7 +105,7 @@ func makeInput(r authorization.Request) (interface{}, error) { var body interface{} - if r.RequestHeaders["Content-Type"] == "application/json" { + if r.RequestHeaders["Content-Type"] == "application/json" && len(r.RequestBody) > 0 { if err := json.Unmarshal(r.RequestBody, &body); err != nil { return nil, err }