Software /
code /
prosody-modules
Changeset
3874:505ae524b635
mod_rest: Remove debug hack to ignore Accept header
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 04 Feb 2020 20:20:08 +0100 |
parents | 3873:fea0c1bed1a0 |
children | 3875:93f71ab6cb00 |
files | mod_rest/mod_rest.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_rest/mod_rest.lua Tue Feb 04 20:19:09 2020 +0100 +++ b/mod_rest/mod_rest.lua Tue Feb 04 20:20:08 2020 +0100 @@ -318,7 +318,7 @@ local http_server = require "net.http.server"; module:hook_object_event(http_server, "http-error", function (event) local request, response = event.request, event.response; - if true or decide_type(request and request.headers.accept or "") == "application/json" then + if decide_type(request and request.headers.accept or "") == "application/json" then if response then response.headers.content_type = "application/json"; end