Fix a bug that a stack overflow occurs if GET's path and uri method's path are the same