Support Forum

Missing JSON header when upgrading

DL DNB Labs
DNB Labs
Member

When upgrading we always needs to add a JSON header to sp-startup/install/sp-upgrade.php (around line 40). Can you please add a line permanent? The sent header is wrong.

header(‘Content-type: application/json;’); 
header(‘Content-type: application/json; charset=’ . SFCHARSET); // if SFCHARSET is in scope

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

I have opened a ticket for discussion – thanks
Odd that you are the only ones to report a problem though…

DL DNB Labs
DNB Labs
Member

We’re behind a security proxy that implement code to text/html. When the JSON is sent as HTML the inserted code breaks the JSON returned.

YS Yellow Swordfish
Yellow Swordfish
Member

Ah – got it. We have actually seen that before but a long, long time ago.
We have no issue with the change and, as long as everything tests out, it will be n the next update.
Thanks