Dear all,
I am trying to get http_reply_from_files/3 from library(http/http_files) to first return a moved (301 Moved Permanently) reply in case the URL to a directory is missing the trailing /.
I was hoping to get this out of the box, since the documentation of http_reply_from_files/3 refers to http_reply_dirindex/3, where this behavior is described. However, the example in the documentation fails to show this behavior.
This is annoying, for example since relative links in index.html pages point to the wrong direction if the user omits the trailing /. Any hints on how to enable this behavior?
Thanks & best regards
Thomas