I'm getting the following warning when debugging my plugin with "Debug Bar" plugin.
WARNING: \wp-includes\class-http.php:1669 - gzinflate(): data error
I am using wp_remote_post()
in the plugin & it is causing the error.
How can I fix that? Any clue ?
Thanks in advance!
You can also use the argument 'decompress' => false
and WordPress will set the correct header values for you. Like this:
wp_remote_post(
$url,
array( 'decompress' => false )
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With