Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Missing JSON header when upgrading
Avatar
DNB Labs
Rookie
sp_UserOfflineSmall Offline
Nov 12, 2015 - 9:27 am

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
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 12, 2015 - 9:45 am

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
DNB Labs
Rookie
sp_UserOfflineSmall Offline
Nov 13, 2015 - 3:35 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 13, 2015 - 3:37 am

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

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17357
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10123
Posts: 79616