Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7609361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:09:11+00:00 2026-05-31T01:09:11+00:00

The issue is that sometimes I get this error in Google Chrome when I

  • 0

The issue is that sometimes I get this error in Google Chrome when I filter an order export:

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_DISPOSITION): Multiple Content-Disposition headers received. This is disallowed to protect against HTTP response splitting attacks.

I’m talking about the Sales > Orders screen.

Say I filter it by an order number so that I only want to export 1 actual order to .csv file.

In FF, IE, etc this seems to work. And most of the times it also works in Chrome (16 – latest version at the time of this posting).

According to this post: 'Duplicate headers received from server' Error in Chrome 16 with EPPlus 2.9 he was able to deduce that it was something to do with “,”s as the delimeter.

I tried going to lib/Varien/File/Csv.php and changing the delimeter to “;” but that did not seem to work…

Anyone have any suggestions?

Note: There are some fixes out there for Chrome itself (I think) but I want to fix it via Magento if possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:09:12+00:00Added an answer on May 31, 2026 at 1:09 am

    Seem that magento didn’t send headers correctly in thats case.

    It’s not the “comma in filename” bug here but it look like Magento send the same header twice.

    You can fix this issue by changing 3 lines in app/code/core/Mage/Core/Controller/Varien/Action.php. Look at the _prepareDownloadResponse method and change the following:

    $this->getResponse()
    ->setHttpResponseCode(200)
    ->setHeader('Pragma', 'public', true)
    ->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true)
    ->setHeader('Content-type', $contentType, true)
    ->setHeader('Content-Length', is_null($contentLength) ? strlen($content) : $contentLength)
    ->setHeader('Content-Disposition', 'attachment; filename="'.$fileName.'"')
    ->setHeader('Last-Modified', date('r'));
    

    by

    $this->getResponse()
    ->setHttpResponseCode(200)
    ->setHeader('Pragma', 'public', true)
    ->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true)
    ->setHeader('Content-type', $contentType, true)
    ->setHeader('Content-Length', is_null($contentLength) ? strlen($content) : $contentLength, true)
    ->setHeader('Content-Disposition', 'attachment; filename="'.$fileName.'"', true)
    ->setHeader('Last-Modified', date('r'), true);
    

    The best is to not apply this change to the core classes but create a copy of this class and put it here: /app/code/local/Mage/core/Controller/Varien/Action.php.

    Look like this bug will be fixed in the next release of Magento 1.7.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this weird issue that jquery.load sometimes fails on chrome. I'm not gonna
Sometimes in execution I get this error message in VS2010 when trying to free
Im following this article to get a geojson file from an excel using Google
The issue that prompted me to ask this is a web form that was
Sometimes I get this kind of exception on not very busy SQL server: Transaction
I've had this intermittent issue when using asp.net. My site is dynamically compiled. Sometimes
I have an issue that is driving me a bit nuts: Using a UserProfileManager
An odd issue that I have been trying to address in a project -
I have a database issue that i currently cannot wrap my head around with
I have a weird issue that only seems to be affecting IE 7. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.