LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   JSON problem ? (http://www.litespeedtech.com/support/forum/showthread.php?t=5487)

saviola8x 11-17-2011 11:42 AM

JSON problem ?
 
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

webizen 11-17-2011 01:41 PM

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

saviola8x 11-17-2011 06:08 PM

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

NiteWave 11-17-2011 06:50 PM

how about:
json = application/json
Quote:

I added json = application/json to mime.properties
the full path of mime.properties ?

sandeep.s85 09-07-2012 12:07 AM

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

Instead it is returning the text/html everytime

webizen 09-07-2012 11:04 AM

make sure json is defined in mime.types http://www.litespeedtech.com/docs/we.../general/#mime

Edit: also upgrade to the latest 4.1.13 and see any difference.


All times are GMT -7. The time now is 01:13 PM.