http.lua solve the exception types

Solve the exception types.
Not just cookies may be for the table type,but other types may produce errors.