LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > litespeed issue with json

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-07-2012, 03:08 AM
sandeep.s85 sandeep.s85 is offline
Member
 
Join Date: Sep 2012
Posts: 11
Default litespeed issue with json

Hi,

I am running magento with litespeed.

The problem I am facing is that ajax call is being made of which header is set as x-json, but lightspeed is setting another header of text/html content type

I've checked that page with apache and everything is working fine.



I checked the response headers with apache and litespeed and here are they:

With apache:

HTTP/1.1 200 OK
Date: Fri, 07 Sep 2012 05:58:47 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: frontend=164b21c64808a05e806027bdbd4d745d; expires=Fri, 07-Sep-2012 06:58:48 GMT; path=/; domain=mydomain.com; httponly
Connection: close
Transfer-Encoding: chunked
Content-Type: application/x-json



With litespeed:

HTTP/1.1 200 OK
Date: Fri, 07 Sep 2012 06:10:55 GMT
Server: LiteSpeed
Connection: close
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: frontend=164b21c64808a05e806027bdbd4d745d; expires=Fri, 07-Sep-2012 07:10:55 GMT; path=/; domain=mydomain.com; httponly
Content-Type: text/html; charset=UTF-8
Content-Length: 474
Vary: User-Agent


I've also added application/json to mime.properties of litespeed,restarted it but that did not work.

Last edited by sandeep.s85; 09-07-2012 at 09:36 AM..
Reply With Quote
 

Tags
litespeed json

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:57 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.