From 4f6a715902ddad0d12d16bef48a476a5ddd475aa Mon Sep 17 00:00:00 2001 From: Nick Wallace Date: Mon, 14 May 2018 15:25:02 -0500 Subject: [PATCH] Fixed grant_type for formvalue --- access.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access.go b/access.go index 36b38a5..3d462f0 100644 --- a/access.go +++ b/access.go @@ -129,7 +129,7 @@ func (s *Server) HandleAccessRequest(w *Response, r *http.Request) *AccessReques return nil } - grantType := AccessRequestType(r.Form.Get("grant_type")) + grantType := AccessRequestType(r.FormValue("grant_type")) if s.Config.AllowedAccessTypes.Exists(grantType) { switch grantType { case AUTHORIZATION_CODE: