mattermost-mobile/app
Felipe Martin 3319aec473
Fix case-insensitive pre-auth header check in doPing (#9577)
* Fix case-insensitive pre-auth header check in doPing

HTTP headers are case-insensitive per RFC 7230, but the pre-auth
rejection check accessed x-reject-reason using an exact lowercase key.
Servers/proxies may return varying cases (e.g. X-Reject-Reason). Add a
getResponseHeader utility for case-insensitive lookup and use it in both
pre-auth check paths.

* Address PR feedback: optimize getResponseHeader and fix test description

Try exact match and lowercase match before falling back to a full scan
to avoid array allocation on every call. Fix test description to say
"uppercase" instead of "mixed case" to match the test data.
2026-03-17 12:07:07 +01:00
..
actions Fix case-insensitive pre-auth header check in doPing (#9577) 2026-03-17 12:07:07 +01:00
client Fix case-insensitive pre-auth header check in doPing (#9577) 2026-03-17 12:07:07 +01:00
components Agents "RHS" view (#9318) 2026-03-16 09:48:32 -07:00
constants Agents "RHS" view (#9318) 2026-03-16 09:48:32 -07:00
context Enable exhaustive deps in the repo (#9508) 2026-02-18 11:56:16 +01:00
database Agents "RHS" view (#9318) 2026-03-16 09:48:32 -07:00
helpers Remove tand prevent double tap (#9078) 2025-08-25 12:03:01 +02:00
hooks Agents "RHS" view (#9318) 2026-03-16 09:48:32 -07:00
i18n Add autotranslations (#9324) 2026-02-10 17:50:39 +01:00
init fix: prevent removal of pre-auth secret on logout (#9411) 2026-01-27 15:52:37 +01:00
managers [MM-67507] Fix threads not being refetch when switching translations (#9512) 2026-02-17 16:07:10 +01:00
products Agents "RHS" view (#9318) 2026-03-16 09:48:32 -07:00
queries [MM-67253] Add support for DMs and GMs for autotranslations (#9505) 2026-02-16 16:32:02 +01:00
screens prevent duplicate search when navigating back with a new hashtag (#9579) 2026-03-17 11:12:39 +01:00
store feat: support fillewillbedownloaded and sendtoastmessage pluginapi (#9416) 2026-02-16 17:10:25 +01:00
utils Fix case-insensitive pre-auth header check in doPing (#9577) 2026-03-17 12:07:07 +01:00