From 2ecdf3a8843d58e0b8329a67d378677fc033afa8 Mon Sep 17 00:00:00 2001 From: ksw2000 <13825170+ksw2000@users.noreply.github.com> Date: Mon, 22 Jul 2024 14:58:05 +0800 Subject: [PATCH] Remove redundant code --- header.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/header.go b/header.go index c1265dca94..0917cc89af 100644 --- a/header.go +++ b/header.go @@ -3358,10 +3358,6 @@ func (s *headerScanner) next() bool { s.value, s.b, s.hLen = normalizeHeaderValue(s.value, oldB, s.hLen) } - for len(s.b) > 0 && (s.b[0] == ' ' || s.b[0] == '\t') { - s.b = s.b[1:] - } - return true }