Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
dc5b979a
"jetbrains:/idea/checkout/git" did not exist on "10aee59eef9daf18e91b763e6d40a40add91aad0"
Commit
dc5b979a
authored
Jul 05, 2023
by
Zheng Jie
Browse files
Merge branch 'master' into deploy
parents
92d38e51
46731f23
Changes
1
Show whitespace changes
Inline
Side-by-side
eladmin-common/src/main/java/me/zhengjie/utils/StringUtils.java
View file @
dc5b979a
...
...
@@ -171,7 +171,8 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
public
static
String
getBrowser
(
HttpServletRequest
request
)
{
UserAgent
ua
=
UserAgentUtil
.
parse
(
request
.
getHeader
(
"User-Agent"
));
return
ua
.
getBrowser
().
toString
()
+
" "
+
ua
.
getVersion
();
String
browser
=
ua
.
getBrowser
().
toString
()
+
" "
+
ua
.
getVersion
();
return
browser
.
replace
(
".0.0.0"
,
""
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment