Skip to content

http: send must initialize header map #1558

@gopherbot

Description

@gopherbot

by santucco:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. run 'make test' in src/http directory

What is the expected output?
the test has to be passed

What do you see instead?
"panic: runtime error: assignment to entry in nil map" 
stack is attached in log.txt

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
Linux (Gentoo)

Which revision are you using?  (hg identify)
322350d6fdbf+ release/release.2011-02-24

Please provide any additional information below.
I sit behind a proxy with authentication.
After some digging, I have found the map has to be initialized in function send
(src/pkg/http/client.go:103), but 'info' is empty and the map is not made.

If I make the map, test fails, the ouput is attached in log2.txt.

Attachments:

  1. log.txt (3566 bytes)
  2. log2.txt (10156 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions