-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api.php: getMauticVersion() always returns null due to header key is lower-case #233
Comments
Hi @HerbergSystems, thanks for reporting this! I've seen this in other PHP applications before - some webservers seem to convert header keys to lowercase. Could you please test #240? That should fix it! |
Hi Dennis,
Thanks for fixing the bug. It worked for me!
Best regards
Jan
Am 24.02.2021 um 20:55 schrieb Dennis Ameling:
… Hi @HerbergSystems <https://github.com/HerbergSystems>, thanks for
reporting this! I've seen this in other PHP applications before - some
webservers seem to convert header keys to lowercase. Could you please
test #240 <#240>? That should
fix it!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#233 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR4AQF5KJWSXY2EAPSLH3GDTAVKRRANCNFSM4WEAZSVQ>.
--
Herberg Systems GmbH
Mr. Jan Herberg
Geschäftsführer/Managing Director
Boschstrasse 23 b
22761 Hamburg - Germany
Phone: +49 40 40 11 346-0
Mobile: +49 173 8683 315
Web: http://www.herberg-systems.com
Amtsgericht Hamburg Registernummer: HR B 77 140
|
I'm having the same issue on my webserver and can confirm that the solution #240 works, please merge it into the next release, thanks! Edit: |
Thanks for testing! Please approve the PR itself. Your test may me overlooked in the issues. |
…ey (addresses issue mautic#233)
In Method getMauticVersion():
Unfortunately, the header (at least on our Mautic installation on Debian Buster) is all lower-case: "mautic-version", not "Mautic-Version". So, this method will always return null.
Solution:
Avoid case-sensitive checks on headers here. Simple workaround (could be done better...):
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: