diff --git a/sample-windows.ini b/sample-windows.ini index 4f7fa02..55943de 100644 --- a/sample-windows.ini +++ b/sample-windows.ini @@ -1,3 +1,10 @@ +; SymbolPaths is generally the only section Windows users care to modify. +; This section lists the directories snappy looks for local symbols. +[SymbolPaths] +Firefox = %(TEMP)s\breakpad\symbols_ffx +Windows = %(TEMP)s\breakpad\symbols_os +Thunderbird = %(TEMP)s\breakpad\symbols_tbrd + [General] hostname = 0.0.0.0 portNumber = 8000 @@ -19,10 +26,5 @@ logPath = %(TEMP)s\log\snappy ; Valid settings: CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET logLevel = INFO -[SymbolPaths] -Firefox = %(TEMP)s\breakpad\symbols_ffx -Windows = %(TEMP)s\breakpad\symbols_os -Thunderbird = %(TEMP)s\breakpad\symbols_tbrd - ;[SymbolURLs] ;MozillaS3 = https://s3-us-west-2.amazonaws.com/org.mozilla.crash-stats.symbols-public/v1/ diff --git a/symbolicationWebService.py b/symbolicationWebService.py index d2dcd26..79ddbc2 100755 --- a/symbolicationWebService.py +++ b/symbolicationWebService.py @@ -132,7 +132,7 @@ def sendHeaders(self, errorCode): self.set_header("Content-type", "application/json") def prepare(self): - xForwardIp = self.request.headers.get(" X-Forwarded-For") + xForwardIp = self.request.headers.get("X-Forwarded-For") self.remoteIp = self.request.remote_ip if not xForwardIp else xForwardIp def head(self): @@ -142,8 +142,8 @@ def get(self): return self.post() @tornado.gen.coroutine - def post(self): - self.LogDebug("Received request") + def post(self, path): + self.LogDebug("Received request with path '{}'".format(path)) try: CheckDebug() @@ -258,7 +258,7 @@ def Main(): app = Application([ url(r'/(debug)', DebugHandler), url(r'/(nodebug)', DebugHandler), - url(r".*", SymbolHandler)]) + url(r"(.*)", SymbolHandler)]) app.listen(gOptions['portNumber'], gOptions['hostname'])