Skip to content

Commit

Permalink
Merge pull request HelloZeroNet#753 from MuxZeroNet/patch-6
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloZeroNet committed Jan 10, 2017
2 parents 9014784 + 4a6dc79 commit 91c8526
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 91c8526

Please sign in to comment.