setting response content type to "text/html" if a service path ends with ".html"