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

panic: assignment to entry in nil map #63

Open
solo-xwz opened this issue Mar 5, 2024 · 1 comment
Open

panic: assignment to entry in nil map #63

solo-xwz opened this issue Mar 5, 2024 · 1 comment

Comments

@solo-xwz
Copy link

solo-xwz commented Mar 5, 2024

image
how to avoid this?

@8763232
Copy link

8763232 commented Mar 22, 2024

`

func (h Header) write(w io.Writer, trace *httptrace.ClientTrace) error {
return h.writeSubset(w, nil, trace) exclude is nil?
}

func (h Header) writeSubset(w io.Writer, exclude map[string]bool, trace *httptrace.ClientTrace) error {
.......
mutex.Lock()
exclude[HeaderOrderKey] = true problem is there!
exclude[PHeaderOrderKey] = true
exclude[UnChangedHeaderKey] = true
mutex.Unlock()
......

@wangluozhe you need fix,pls!

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

2 participants