Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add-resource(server, "/", resource) can fail #73

Open
cgay opened this issue Sep 8, 2014 · 1 comment
Open

add-resource(server, "/", resource) can fail #73

cgay opened this issue Sep 8, 2014 · 1 comment
Labels

Comments

@cgay
Copy link
Member

cgay commented Sep 8, 2014

The http-client-test-suite registers some test resources like this:

define function register-test-resources (server :: <http-server>)
  add-resource(server, "/x", make(<x-resource>));
  add-resource(server, "/echo", make(<echo-resource>));
  add-resource(server, "/", make(<echo-resource>));

Trying to access / fails for some reason. If instead the resources are registered in this order:

  add-resource(server, "/", make(<echo-resource>));
  add-resource(server, "/x", make(<x-resource>));
  add-resource(server, "/echo", make(<echo-resource>));

it works fine.

Could be related to <placeholder-resource>s.

@cgay cgay added the Routing label Sep 8, 2014
@cgay
Copy link
Member Author

cgay commented Sep 8, 2014

test-http-get-no-path is good to reproduce this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant