Browse files

Merge pull request #507 from ikarienator/master

Browse command does not parse URL correctly
  • Loading branch information...
2 parents 45e7d32 + b7f11b3 commit a010af66eb621b6a26b99ac46cad78f460802713 @evmar evmar committed Feb 24, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/browse.py
View
3 src/browse.py
@@ -29,6 +29,7 @@
import subprocess
import sys
import webbrowser
+import urllib2
from collections import namedtuple
Node = namedtuple('Node', ['inputs', 'rule', 'target', 'outputs'])
@@ -151,7 +152,7 @@ def ninja_dump(target):
class RequestHandler(httpserver.BaseHTTPRequestHandler):
def do_GET(self):
assert self.path[0] == '/'
- target = self.path[1:]
+ target = urllib2.unquote(self.path[1:])
if target == '':
self.send_response(302)

0 comments on commit a010af6

Please sign in to comment.