Skip to content

Commit 7a36ee6

Browse files
authored
check correct length (#1210)
1 parent b3f6fd4 commit 7a36ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/src/headers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func parseAdditionalHeadersFromEnviron(environ []string) map[string]string {
3838

3939
for _, h := range splitHeaders {
4040
p := strings.SplitN(h, ":", 2)
41-
if len(parts) != 2 || p[1] == "" {
41+
if len(p) != 2 || p[1] == "" {
4242
continue
4343
}
4444

0 commit comments

Comments
 (0)