From 42f28ab8e374137fe3f5d25424489d879d4724f8 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 21 Jun 2017 19:06:17 -0700 Subject: Updating server dependancies (#6712) --- vendor/github.com/mssola/user_agent/user_agent.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'vendor/github.com/mssola/user_agent/user_agent.go') diff --git a/vendor/github.com/mssola/user_agent/user_agent.go b/vendor/github.com/mssola/user_agent/user_agent.go index 36e8d1bfa..74ddf273c 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à +// Copyright (C) 2012-2014 Miquel Sabaté Solà // This file is licensed under the MIT license. // See the LICENSE file. @@ -8,7 +8,9 @@ // information that has been extracted from a parsed User Agent string. package user_agent -import "strings" +import ( + "strings" +) // A section contains the name of the product, its version and // an optional comment. @@ -139,9 +141,7 @@ func (p *UserAgent) Parse(ua string) { } if len(sections) > 0 { - if sections[0].name == "Mozilla" { - p.mozilla = sections[0].version - } + p.mozilla = sections[0].version p.detectBrowser(sections) p.detectOS(sections[0]) @@ -167,8 +167,3 @@ func (p *UserAgent) Bot() bool { func (p *UserAgent) Mobile() bool { return p.mobile } - -// Returns the original given user agent. -func (p *UserAgent) UA() string { - return p.ua -} -- cgit v1.2.3-1-g7c22