我在 golang 上使用简单的客户端
package main
import (
"fmt"
"net/http"
)
func main() {
_, err := http.Get("http://localhost:8080/health")
fmt.Println(err)
}
和 python 上的简单 http 服务器https://gist.github.com/huyng/814831
但我得到一个错误
Get "http://localhost:8080/health": net/http: HTTP/1.x transport connection broken: unexpected EOF
我的客户端或服务器出了什么问题?
去
翻过高山走不出你
相关分类