mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-09-14 10:20:32 +00:00
refactor: to use strings.Lines
This commit is contained in:
parent
36c6cc203e
commit
b482a9bf0d
@ -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…
x
Reference in New Issue
Block a user