15

NO, YOU ABSOLUTE DISGUSTING GREMLIN OF A JS HTTP CLIENT, I DON'T WANT YOU TO "JsOn.StRiNgiFy" MY PAYLOAD OR DOING ANY WEIRD SHIT

I NEED TO SEND THIS THING EXACTLY AS IT'S WRITTEN, STOP TRYING TO GUESS WHAT I'M TRYING TO DO I'M A DEV WITH SOME 7 YEARS OF EXPERIENCE WRITING CODE, I'M SENDING A STRING CUZ I NEED TO SEND A STRING

Comments
  • 2
    Have you tried specifying the correct headers in your request and response? (Accept and Content-Type respectively)
  • 1
    Other than that, you could use fetch instead of axios.

    Instead of

    fetch(uri, options).then(res => res.json()).then(json_res => { .... })

    You could do

    fetch(uri, options).then(res => res.text()).then(raw_res => { .... })
Add Comment