Skip to content

Commit

Permalink
Revert to old header method
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinMitchell committed Nov 3, 2021
1 parent 506903c commit 52decff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![GitHub License](https://img.shields.io/github/license/bitcoinmitchell/cryptwerk-plugin?color=brightgreen&style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/blob/master/LICENSE)
[![GitHub contributors](https://img.shields.io/github/contributors-anon/bitcoinmitchell/cryptwerk-plugin?style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/graphs/contributors)

[![PrestaShop module version](https://img.shields.io/badge/module%20version-0.3.1-brightgreen?style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/releases)
[![PrestaShop module version](https://img.shields.io/badge/module%20version-0.3.2-brightgreen?style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/releases)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/bitcoinmitchell/cryptwerk-plugin?sort=semver&style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/releases)
[![GitHub all releases](https://img.shields.io/github/downloads/bitcoinmitchell/cryptwerk-plugin/total?style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/releases)

Expand Down
7 changes: 6 additions & 1 deletion modules/cryptwerk/controllers/front/feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ public function __construct()
*/
public function display(): void
{
echo new XmlResponse($this->factory->build()->asXML());
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Content-type: text/xml');
header('Pragma: public');
header('Expires: 0');

echo $this->factory->build()->asXML();
}
}
2 changes: 1 addition & 1 deletion modules/cryptwerk/cryptwerk.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct()
{
$this->name = 'cryptwerk';
$this->tab = 'administration';
$this->version = '0.3.1';
$this->version = '0.3.2';
$this->author = 'BitcoinMitchell';
$this->ps_versions_compliancy = ['min' => '1.7.7', 'max' => _PS_VERSION_];

Expand Down
15 changes: 0 additions & 15 deletions modules/cryptwerk/src/Component/HttpFoundation/XmlResponse.php

This file was deleted.

0 comments on commit 52decff

Please sign in to comment.