code: private String fixRequestPath(String path) {
  		return path.endsWith("/") ? path.substring(0, path.length() - 1) : path;
  	}
docs: Helper method. The request path shouldn't have a trailing slash.
  
  @param path the path to fix.
  @return the path with its trailing slash