update "/rest" to "/rest/" to check for infourl

this update to prevent error in getting the infourl if the request host name include "/rest", like "http://reston.example.com", as mentioned in #5