fixed a bug with HTTP DELETE methods