Permalink
Browse files

Browse command does not parse URL correctly

  • Loading branch information...
1 parent b26d217 commit b7f11b3b495cb3d5964f9028dd3ea2c977565e65 Bei Zhang committed Feb 24, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/browse.py
View
@@ -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 b7f11b3

Please sign in to comment.