From 644fbf48c22b6f6c3fbd8b1a867088aa7014e9d5 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 17 Feb 2022 20:18:35 +0100 Subject: [PATCH] Throw error on response-less responses. --- src/jagi/scgi/EventServer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jagi/scgi/EventServer.java b/src/jagi/scgi/EventServer.java index 3df6c03..e2055c7 100644 --- a/src/jagi/scgi/EventServer.java +++ b/src/jagi/scgi/EventServer.java @@ -285,6 +285,8 @@ public class EventServer implements Runnable { } else if((st = (String)resp.get("http.status")) != null) { respond(req, st, resp); handoff = true; + } else { + throw(new IllegalArgumentException("neither http.status nor jagi.status set")); } } catch(Throwable t) { error = t; -- 2.11.0