Choose a location:
posted 2/20/2013 by Raghav Khunger
While transmitting PDF files to Chrome I started getting the following error:
Duplicate headers received from server The response from the server contained duplicate headers. This problem is generally the result of a misconfigured website or proxy. Only the website or proxy administrator can fix this issue. Error 349 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_
After investing on this issue I noticed the files having comma (,) in their names was causing this issue and was splitting the "content-disposition" header value. The solution was to wrap the file name around quotes (""), like this: context.Response.AddHeader("Content-Disposition", string.Format("filename=\"{0}\"", file.FileName));
What kind of email newsletter would you prefer to receive from CodeAsp.Net? 18