Skip to content

Unsolicited response received on idle HTTP channel… #19895

@davidmz

Description

@davidmz

go1.8 windows/amd64

What did you do?

I run this simple program:

package main

import (
	"fmt"
	"net/http"
)

func main() {
	resp, err := http.Head("http://t.co/2LhlOo2EtX")
	if err != nil {
		fmt.Println(err)
		return
	}
	resp.Body.Close()
	fmt.Println(resp.Request.URL.String())
}

What did you expect to see?

A single line with unshorten t.co URL:

https://golang.org/dl/

What did you see instead?

Some log message before expected output:

2017/04/08 16:39:00 Unsolicited response received on idle HTTP channel starting with "0\r\n\r\n"; err=<nil>
https://golang.org/dl/

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