removed one condition to detect json: seems wrong.
fixed wrong POD
fix
fix
be able to send request with cookie