Fix the bug of extra param empty problem, which caused the mkfile command return 301 rather than 200.