diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2018-01-16 12:03:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 12:03:31 -0500 |
commit | 2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7 (patch) | |
tree | e08ff912e1924c06939f314168c3362d6f1ec0de /vendor/github.com/mssola/user_agent | |
parent | f5c8a71698d0a7a16c68be220e49fe64bfee7f5c (diff) | |
download | chat-2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7.tar.gz chat-2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7.tar.bz2 chat-2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7.zip |
Updated dependencies and added avct/uasurfer (#8089)
* Updated dependencies and added avct/uasurfer
* Added uasurfer to NOTICE.txt
Diffstat (limited to 'vendor/github.com/mssola/user_agent')
-rw-r--r-- | vendor/github.com/mssola/user_agent/LICENSE | 2 | ||||
-rw-r--r-- | vendor/github.com/mssola/user_agent/README.md | 2 | ||||
-rw-r--r-- | vendor/github.com/mssola/user_agent/all_test.go | 9 | ||||
-rw-r--r-- | vendor/github.com/mssola/user_agent/bot.go | 2 | ||||
-rw-r--r-- | vendor/github.com/mssola/user_agent/browser.go | 2 | ||||
-rw-r--r-- | vendor/github.com/mssola/user_agent/operating_systems.go | 4 | ||||
-rw-r--r-- | vendor/github.com/mssola/user_agent/user_agent.go | 2 |
7 files changed, 15 insertions, 8 deletions
diff --git a/vendor/github.com/mssola/user_agent/LICENSE b/vendor/github.com/mssola/user_agent/LICENSE index ede19fbfb..1c42691ce 100644 --- a/vendor/github.com/mssola/user_agent/LICENSE +++ b/vendor/github.com/mssola/user_agent/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2012-2017 Miquel Sabaté Solà +Copyright (c) 2012-2018 Miquel Sabaté Solà Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/vendor/github.com/mssola/user_agent/README.md b/vendor/github.com/mssola/user_agent/README.md index 575977df2..60427ec53 100644 --- a/vendor/github.com/mssola/user_agent/README.md +++ b/vendor/github.com/mssola/user_agent/README.md @@ -48,4 +48,4 @@ func main() { } ~~~ -Copyright © 2012-2017 Miquel Sabaté Solà, released under the MIT License. +Copyright © 2012-2018 Miquel Sabaté Solà, released under the MIT License. diff --git a/vendor/github.com/mssola/user_agent/all_test.go b/vendor/github.com/mssola/user_agent/all_test.go index fb0cf054e..a5d5ee648 100644 --- a/vendor/github.com/mssola/user_agent/all_test.go +++ b/vendor/github.com/mssola/user_agent/all_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2017 Miquel Sabaté Solà <mikisabate@gmail.com> +// Copyright (C) 2012-2018 Miquel Sabaté Solà <mikisabate@gmail.com> // This file is licensed under the MIT license. // See the LICENSE file. @@ -25,11 +25,16 @@ var uastrings = []struct { expected: "Mozilla:5.0 Browser:Googlebot-2.1 Bot:true Mobile:false", }, { - title: "GoogleBotSmartphone", + title: "GoogleBotSmartphone (iPhone)", ua: "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)", expected: "Mozilla:5.0 Browser:Googlebot-2.1 Bot:true Mobile:true", }, { + title: "GoogleBotSmartphone (Android)", + ua: "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)", + expected: "Mozilla:5.0 Browser:Googlebot-2.1 Bot:true Mobile:true", + }, + { title: "BingBot", ua: "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)", expected: "Mozilla:5.0 Browser:bingbot-2.0 Bot:true Mobile:false", diff --git a/vendor/github.com/mssola/user_agent/bot.go b/vendor/github.com/mssola/user_agent/bot.go index a6222d17f..acccd51d6 100644 --- a/vendor/github.com/mssola/user_agent/bot.go +++ b/vendor/github.com/mssola/user_agent/bot.go @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 Miquel Sabaté Solà <mikisabate@gmail.com> +// Copyright (C) 2014-2018 Miquel Sabaté Solà <mikisabate@gmail.com> // This file is licensed under the MIT license. // See the LICENSE file. diff --git a/vendor/github.com/mssola/user_agent/browser.go b/vendor/github.com/mssola/user_agent/browser.go index fbed92176..c6a1d2469 100644 --- a/vendor/github.com/mssola/user_agent/browser.go +++ b/vendor/github.com/mssola/user_agent/browser.go @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2017 Miquel Sabaté Solà <mikisabate@gmail.com> +// Copyright (C) 2012-2018 Miquel Sabaté Solà <mikisabate@gmail.com> // This file is licensed under the MIT license. // See the LICENSE file. diff --git a/vendor/github.com/mssola/user_agent/operating_systems.go b/vendor/github.com/mssola/user_agent/operating_systems.go index aebd8b394..ad4d56680 100644 --- a/vendor/github.com/mssola/user_agent/operating_systems.go +++ b/vendor/github.com/mssola/user_agent/operating_systems.go @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2017 Miquel Sabaté Solà <mikisabate@gmail.com> +// Copyright (C) 2012-2018 Miquel Sabaté Solà <mikisabate@gmail.com> // This file is licensed under the MIT license. // See the LICENSE file. @@ -88,6 +88,8 @@ func webkit(p *UserAgent, comment []string) { } if len(comment) > 3 { p.localization = comment[3] + } else if len(comment) == 3 { + _ = p.googleBot() } } else if len(comment) > 0 { if len(comment) > 3 { diff --git a/vendor/github.com/mssola/user_agent/user_agent.go b/vendor/github.com/mssola/user_agent/user_agent.go index 36e8d1bfa..436e94980 100644 --- a/vendor/github.com/mssola/user_agent/user_agent.go +++ b/vendor/github.com/mssola/user_agent/user_agent.go @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2017 Miquel Sabaté Solà <mikisabate@gmail.com> +// Copyright (C) 2012-2018 Miquel Sabaté Solà <mikisabate@gmail.com> // This file is licensed under the MIT license. // See the LICENSE file. |