Fixes the 'Content-Type' bug with Vue Resource.
cc: @stanhu @selfup @jschatz1
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/1575