modify perm-check branch-update handle, adjust code style for http-server