Software /
code /
prosody-modules
Diff
mod_http_oauth2/mod_http_oauth2.lua @ 3939:a6b3b41a116c
Merge commit
author | tmolitor <thilo@eightysoft.de> |
---|---|
date | Sun, 08 Mar 2020 19:59:49 +0100 |
parent | 3934:469408682152 |
child | 4228:3eb595cf847f |
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua Sun Mar 08 19:53:52 2020 +0100 +++ b/mod_http_oauth2/mod_http_oauth2.lua Sun Mar 08 19:59:49 2020 +0100 @@ -67,6 +67,7 @@ end function handle_token_grant(event) + event.response.headers.content_type = "application/json"; local params = http.formdecode(event.request.body); if not params then return oauth_error("invalid_request");