Skip to content

optimize: stop parse the header if encounter a invalid char #3237

optimize: stop parse the header if encounter a invalid char

optimize: stop parse the header if encounter a invalid char #3237

Triggered via pull request November 30, 2023 11:10
Status Failure
Total duration 3m 19s
Artifacts

tests.yml

on: pull_request
Matrix: compat-test
Matrix: hz-test-unix
Matrix: hz-test-windows
Matrix: lint-and-ut
Matrix: ut-windows
Fit to window
Zoom out
Zoom in

Annotations

8 errors
lint-and-ut (1.20): internal/bytesconv/bytesconv_test.go#L200
S1008: should use 'return ValidHeaderFieldValueTable[s] != 0' instead of 'if ValidHeaderFieldValueTable[s] == 0 { return false }; return true' (gosimple)
lint-and-ut (1.20)
issues found
lint-and-ut (1.19)
The job was canceled because "_1_20" failed.
lint-and-ut (1.19): internal/bytesconv/bytesconv_test.go#L200
S1008: should use 'return ValidHeaderFieldValueTable[s] != 0' instead of 'if ValidHeaderFieldValueTable[s] == 0 { return false }; return true' (gosimple)
lint-and-ut (1.19)
issues found
lint-and-ut (1.18)
The job was canceled because "_1_20" failed.
lint-and-ut (1.18): internal/bytesconv/bytesconv_test.go#L200
S1008: should use 'return ValidHeaderFieldValueTable[s] != 0' instead of 'if ValidHeaderFieldValueTable[s] == 0 { return false }; return true' (gosimple)
lint-and-ut (1.18)
issues found