Skip to content
Advertisement

Can’t set Guzzle Content Type

I’m trying to request this way:

JavaScript

The problem is that this request is being set without Content-Type. What am I doing wrong?

Advertisement

Answer

Ok .. the problem was that I was setting body and headers outside of defautls. the solution is:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement