fixed some defects
Merge https://github.com/jerrymannel/httpstore