Throw error on response-less responses.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 17 Feb 2022 19:18:35 +0000 (20:18 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 17 Feb 2022 19:18:35 +0000 (20:18 +0100)
src/jagi/scgi/EventServer.java

index 3df6c03..e2055c7 100644 (file)
@@ -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;