Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WordPress gzinflate(): data error when debugging

Tags:

php

wordpress

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!

like image 859
Eunus Hosen Avatar asked Aug 27 '13 09:08

Eunus Hosen


1 Answers

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 )
);
like image 90
Philipp Avatar answered Sep 27 '22 18:09

Philipp