mirror of
https://github.com/status-im/universal-links-handler.git
synced 2025-02-24 00:28:11 +00:00
Merge master
This commit is contained in:
commit
f47f5065e7
@ -18,6 +18,10 @@ router.get('/', function (req, res, next) {
|
||||
|
||||
var userAgent = req.headers['user-agent'];
|
||||
|
||||
res.header('Cache-Control', 'private, no-cache, no-store, must-revalidate');
|
||||
res.header('Expires', '-1');
|
||||
res.header('Pragma', 'no-cache');
|
||||
|
||||
if (isAndroid(userAgent)) {
|
||||
return res.redirect("https://play.google.com/store/apps/details?id=im.status.ethereum");
|
||||
} else if (isIOS(userAgent)) {
|
||||
|
@ -134,7 +134,7 @@ header_contains() {
|
||||
}
|
||||
|
||||
_get_header() {
|
||||
grep -F "${1}" "${RESPONSE_HEADERS}" | tr -d '\r'
|
||||
grep -i -F "${1}" "${RESPONSE_HEADERS}" | tr -d '\r'
|
||||
}
|
||||
|
||||
# debug
|
||||
|
Loading…
x
Reference in New Issue
Block a user