Normalise paths in dddp.server.views before comparison.

This commit is contained in:
Tyson Clugg 2015-08-11 09:48:00 +10:00
parent 7663405702
commit 5939d47af6

View file

@ -187,6 +187,8 @@ class MeteorView(View):
def get(self, request, path):
"""Return HTML (or other related content) for Meteor."""
if path[:1] != '/':
path = '/%s' % path
if path == '/meteor_runtime_config.js':
config = {
'DDP_DEFAULT_CONNECTION_URL': request.build_absolute_uri('/'),