Fixes content-type when posting parameters

When posting URL-parameters we need to use the correct content type.