I use Axios to perform an HTTP post like this:
import axios from 'axios' params = {'HTTP_CONTENT_LANGUAGE': self.language} headers = {'header1': value} axios.post(url, params, headers)
Is this correct? Or should I do:
axios.post(url, params: params, headers: headers)