Welcome Guest, Not a member yet? Register   Sign In
From Http to Https - Now browser gives ERR_CONTENT_DECODING_FAILED error in console
#3

Hi TPojka thanks for your reply,

I had tried those links before posting this thread here actually i overcome the issue as for as my issue was concern the error message was showing in the browser console is due to the json response from controller method to caller ajax method. I was echoing the response in controller method like the following

echo json_encode($data);

As i replace the above line with the following using proper output class of codeigniter, then the error resolved

$this->output->set_content_type('application/json');
$this->output->set_output(json_encode($data));

I think there is issue between gzip compression on https and ajax method, by echoing json response it not properly working because i was using this method on http there were no issue.


Thanks once again for your reply.
Reply


Messages In This Thread
RE: From Http to Https - by Tpojka - 04-03-2016, 06:16 AM
RE: From Http to Https - by MasoodRehman - 04-03-2016, 09:40 AM
RE: From Http to Https - by MasoodRehman - 04-03-2016, 12:38 PM
RE: From Http to Https - by Tpojka - 04-03-2016, 12:59 PM
RE: From Http to Https - by MasoodRehman - 04-04-2016, 12:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB