# HG changeset patch # User Marco Cirillo # Date 1351124123 0 # Node ID 6c2b77f97e62f132c40edc375028bf731ba08d66 # Parent 836e4e110c71afa0e9db7a62eee7a2cab5084741 mod_pastebin: provide correct content-type on invalid pastes warnings too. diff -r 836e4e110c71 -r 6c2b77f97e62 mod_pastebin/mod_pastebin.lua --- a/mod_pastebin/mod_pastebin.lua Tue Oct 23 13:32:44 2012 +0000 +++ b/mod_pastebin/mod_pastebin.lua Thu Oct 25 00:15:23 2012 +0000 @@ -56,7 +56,8 @@ function handle_request(event, pasteid) if not pasteid or not pastes[pasteid] then - return "Invalid paste id, perhaps it expired?"; + event.response.headers = default_headers; + return event.response:send("Invalid paste id, perhaps it expired?"); end --module:log("debug", "Received request, replying: %s", pastes[pasteid].text);