summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-05-20 20:31:03 +0200
committerTor Andersson <tor@ccxvii.net>2022-05-22 16:46:43 +0200
commit1df38d7d7d5a7e933c61f79ef737be66ab974310 (patch)
treebd39cadf72d5900bda600fa2d7b648fb7eda7fdf /server.js
parentdcd1a5c758a3ba97f2ecbcda41e793ca475df15a (diff)
downloadserver-1df38d7d7d5a7e933c61f79ef737be66ab974310.tar.gz
Add AppleWebKit UA string.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.js b/server.js
index d28fb31..390a93e 100644
--- a/server.js
+++ b/server.js
@@ -311,6 +311,8 @@ function parse_user_agent(req) {
agent = "MSIE";
else if (user_agent.indexOf("Trident/") >= 0)
agent = "MSIE";
+ else if (user_agent.indexOf("AppleWebKit/") >= 0)
+ agent = "AppleWebKit";
if (user_agent.indexOf("Mobile") >= 0)
return agent + "/M";
return agent;