mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 10:45:24 +00:00
refactor: to use strings.Lines
This commit is contained in:
parent
36c6cc203e
commit
b482a9bf0d
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ func (a *HookAuth) GetValues(s string) {
|
|||
s = strings.ReplaceAll(s, "\r\n", "\n")
|
||||
|
||||
// iterate input lines
|
||||
for _, val := range strings.Split(s, "\n") {
|
||||
for val := range strings.Lines(s) {
|
||||
v := strings.SplitN(val, "=", 2)
|
||||
|
||||
// skips non key and value format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue