Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MuxZeroNet committed Jan 9, 2017
1 parent 9014784 commit 4a6dc79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ui/UiRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def actionWrapper(self, path, extra_headers=None):
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")
Expand Down

0 comments on commit 4a6dc79

Please sign in to comment.