Skip to content

Commit c131190

Browse files
committed
Fix misbehaviour with trailing slash
1 parent e739b44 commit c131190

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

HttpServer.py

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ def start(self, enable_ssl=False):
106106
],
107107
'tools.encode.on': True,
108108
'tools.encode.encoding': 'utf-8',
109+
# Avoid redirect when the URL does not have an ending '\'
110+
'tools.trailing_slash.on': False,
109111
},
110112
}
111113
if enable_ssl:

0 commit comments

Comments
 (0)