JSON problem ?

Discussion in 'Install/Configuration' started by saviola8x, Nov 17, 2011.

  1. saviola8x

    saviola8x New Member

    Hello,

    I have server has been build apache with mod_php. Installed litespeed 4.1.7 std.

    I have 1 magento website, and use json and it works ok on Chrome, but no on Firefox :

    Response Headers

    Server Apache/2.2.3 (CentOS)
    Content-Length 53
    Content-Type application/x-json

    Content-Type text/html; charset=UTF-8
    Content-Length 53
    Server LiteSpeed

    I added json = application/json to mime.properties but no luck.

    Is there litespeed not support json application ?

    Regards,

    OS : Centos 5.6
    Apache : 2.2.3
    PHP : 5.3.8
  2. webizen

    webizen New Member

    you mean 'json=application/x-json'? lsws should send content-type header once defined. make sure restart the service to make it effective.
  3. saviola8x

    saviola8x New Member

    Sr, I typed wrong, when I add json = application/x-json or json = text/x-json, lsws throw php file to download.
  4. NiteWave

    NiteWave Administrator

    how about:
    json = application/json
    the full path of mime.properties ?
  5. sandeep.s85

    sandeep.s85 New Member

    I've the same problem with litspeed. It's not passing through the application/json header.

    Instead it is returning the text/html everytime
  6. webizen

    webizen New Member

    Last edited: Sep 7, 2012

Share This Page