[http] Fix a bug.