Skip to content

Commit

Permalink
use translated path when looking for location (ignore query string, etc)
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@15500 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 3, 2017
1 parent 736ec2b commit fc1cf65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/net/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ def send_head(self):
path = self.translate_path(self.path)
f = None
if os.path.isdir(path):
if not self.path.endswith('/'):
if not path.endswith('/'):
# redirect browser - doing basically what apache does
self.send_response(301)
self.send_header("Location", self.path + "/")
self.send_header("Location", path + "/")
self.end_headers()
return None
for index in "index.html", "index.htm":
Expand Down

0 comments on commit fc1cf65

Please sign in to comment.