joomla-framework / http

Joomla Framework Http Package
GNU General Public License v2.0
17 stars 21 forks source link

Data should be null if there isn't any #33

Closed wilsonge closed 7 years ago

wilsonge commented 7 years ago

At the moment all the transport layers use isset checks on $data as data is null if there isn't any data. However with PSR-7 requests no data is an empty string. That ends up in the curl driver for example as GET requests being sent as a POST.