mirror of
https://github.com/status-im/universal-links-handler.git
synced 2025-02-24 08:38:18 +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'];
|
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)) {
|
if (isAndroid(userAgent)) {
|
||||||
return res.redirect("https://play.google.com/store/apps/details?id=im.status.ethereum");
|
return res.redirect("https://play.google.com/store/apps/details?id=im.status.ethereum");
|
||||||
} else if (isIOS(userAgent)) {
|
} else if (isIOS(userAgent)) {
|
||||||
|
@ -134,7 +134,7 @@ header_contains() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_get_header() {
|
_get_header() {
|
||||||
grep -F "${1}" "${RESPONSE_HEADERS}" | tr -d '\r'
|
grep -i -F "${1}" "${RESPONSE_HEADERS}" | tr -d '\r'
|
||||||
}
|
}
|
||||||
|
|
||||||
# debug
|
# debug
|
||||||
|
Loading…
x
Reference in New Issue
Block a user