serve() request handler: serve index.html or index.htm if pathname ends with "/"