Permalink
Browse files

Fix httpserver.py when request is '/'

  • Loading branch information...
1 parent 570f06b commit b06b42290637809021fa512f4d43c2a3cc6feafd @ajlopez committed Nov 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Src/PythonSharp.Console/examples/httpserver.py
View
2 Src/PythonSharp.Console/examples/httpserver.py
@@ -12,7 +12,7 @@
def process(context):
filename = context.Request.Url.AbsolutePath
- if not filename:
+ if not filename or filename == '/':
filename = "index.html"
if filename[0] == '/':
filename = filename[1:]

0 comments on commit b06b422

Please sign in to comment.