EmicoEcommerce / Magento2TweakwiseExport

Magento 2 module for Tweakwise export
Other
1 stars 10 forks source link

Export feed page incorrect content type #2

Closed lcailleux closed 1 year ago

lcailleux commented 1 year ago

Issue Brief

When opening Tweakwise export feed page (https://example.com/tweakwise/feed/export/key/[EXPORT_KEY]), the content type of the page is text/html. It should be an XML content type, like text/xml.

Due to this, there is an issue on our server having Apache substitute directives on HTML outputs: https://httpd.apache.org/docs/2.4/mod/mod_substitute.html. The export page is blank.

Environment

Steps to reproduce

  1. Install Magento from master branch.
  2. [Example] Export configurable product with multiple children and 2 configurable attributes to Tweakwise.
  3. Go to the export page of Tweakwise (https://example.coml/tweakwise/feed/export/key/[EXPORT_KEY])
  4. Check the content-type value on the response header

Actual result

The content type of the feed page is text/html

Expected result

The content type of the feed page should be text/xml