refactor(server) getExtension && strCmp -> checkExtension