Skip to content

Commit

Permalink
Merge pull request #15 from walac/improvements
Browse files Browse the repository at this point in the history
Some small fixes and improvements
  • Loading branch information
vdjeric committed Jul 27, 2015
2 parents cccd645 + c60109a commit db9f931
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions sample-windows.ini
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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/
8 changes: 4 additions & 4 deletions symbolicationWebService.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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()
Expand Down Expand Up @@ -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'])

Expand Down

0 comments on commit db9f931

Please sign in to comment.