lvivski / start

Sinatra inspired web development framework for Dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Route placeholders fail to match all valid URL path segment characters

almstrand opened this issue · comments

The following code fails to match a URL ccontaining path '/hello/file.txt', e.g. http://localhost/hello/file.txt:

server.get('/hello/:filename').listen((request) {
  print('match!');
});

Only when removing the period (.) from the URL does the placeholder (:filename) match the path segment; despite periods being valid characters in URL path segments.

It would be great if the start placeholders can match all valid path segment character.

resolved by #63