dylan-lang / http

HTTP server and client for Dylan
https://opendylan.org/package/http
MIT License
22 stars 11 forks source link

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

Open cgay opened 10 years ago

cgay commented 10 years ago

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 commented 10 years ago

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