Fix url parser bug.

Signed-off-by: Yunchao Chen <chenyc@infthink.com>