http-push: check path length before using it