From 4a6dc7971ed868f5839f1bfb508170d8e3814539 Mon Sep 17 00:00:00 2001 From: MuxZeroNet Date: Mon, 9 Jan 2017 05:01:49 +0000 Subject: [PATCH] #752 --- src/Ui/UiRequest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ui/UiRequest.py b/src/Ui/UiRequest.py index 2f729db2..b0c7caab 100644 --- a/src/Ui/UiRequest.py +++ b/src/Ui/UiRequest.py @@ -205,7 +205,7 @@ class UiRequest(object): if self.isWebSocketRequest(): return self.error403("WebSocket request not allowed to load wrapper") # No websocket - if "text/html" not in self.env["HTTP_ACCEPT"]: + if "text/html" not in self.env.get("HTTP_ACCEPT", ""): return self.error403("Invalid Accept header to load wrapper") if "prefetch" in self.env.get("HTTP_X_MOZ", "") or "prefetch" in self.env.get("HTTP_PURPOSE", ""): return self.error403("Prefetch not allowed to load wrapper")