fix memory leak when reset secure_key
fix error: pcs_cat don't set the dstsz
fix bug: wrong response when 404 Not Found.
refine
refactor