avoid complaining about http methods when they use OPTIONS
uri_part() now works for file extensions other than .html and .json