Route '0' not recognized #1020

Closed
yanick opened this Issue Apr 27, 2014 · 0 comments

1 participant

@yanick
get '0' => sub {
    return "not gonna fly";
};

won't work, because of the check at https://github.com/PerlDancer/Dancer/blob/devel/lib/Dancer/Route.pm#L43 An empty string will also cause the same thing. It should be changed for a 'defined' test.

@yanick yanick added a commit that closed this issue May 1, 2014
@yanick yanick changelog
Fixes #1020
8e3d5b3
@yanick yanick closed this in 8e3d5b3 May 1, 2014
@racke racke referenced this issue in PerlDancer/Dancer2 May 1, 2014
Closed

Routes must have leading slash #581

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment