Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug in http.go line 156 #28

Open
cgang opened this issue Apr 24, 2024 · 0 comments
Open

A bug in http.go line 156 #28

cgang opened this issue Apr 24, 2024 · 0 comments

Comments

@cgang
Copy link

cgang commented Apr 24, 2024

	for _, extension := range extensions {
		if extensionHeader, ok := extension.(extensionHeaders); ok {
			if _err := extensionHeader(headers, isObs); err != nil {
				doLog(LEVEL_INFO, fmt.Sprintf("set header with error: %v", _err))
			}
		} else {
			doLog(LEVEL_INFO, "Unsupported extensionOptions")
		}
	}

Note the error returned by extensionHeader(headers, isObs) is captured by _err while not used for comparison.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant