default-content-type not specialized#59
Conversation
f83e9d4 allows default-content-type to return either a <mime-type> or a <string> (and specializes to <string> with "application/octet-stream"), but locator-media-type for <directory-resource> here expects only a <mime-type>. Add a specialized default-content-type method for <directory-resource> which returns a new <mime-type> of application/octet-stream
|
I'm going to leave this one for @cgay to take a look at. |
|
I am mostly trying to figure why <directory-resource> is giving me trouble, examples using it (examples/web60/static-content.lid, and the static-content tutorial in the documentation) signalled The change here has stopped that error when I run the example library, and the directory listing seems fine, but files signal an error:
I noticed changing |
|
I agree that things have to be done and a couple of things need fixing. :) Just that @cgay is the best person as he's most familiar with the code. If you could drop by #dylan on irc.freenode.net, it would be useful / helpful perhaps. |
|
I don't remember why I thought it was a good idea to allow content types to be either I suspect the right thing is to make default-content-type always return a kibook@, do you want to look at changing default-content-type to always return a |
Change the behaviour of locator-media-type to reflect the new generic default-content-type. Remove the specialized default-content-type as well since it is no longer needed.
Change the specialization of default-content-type to fit with the new generic interface.
default-content-type not specialized
f83e9d4 allows default-content-type to return either a <mime-type> or a <string> (and specializes to <string> with "application/octet-stream"), but locator-media-type for <directory-resource> here expects only a <mime-type>.
Add a specialized default-content-type method for <directory-resource> which returns a new <mime-type> of application/octet-stream