1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 05:00:39 +00:00

Merge remote-tracking branch 'upstream/develop' into develop

Conflicts:
	httplib/httplib.go
This commit is contained in:
JessonChan
2014-08-22 17:39:57 +08:00
2 changed files with 5 additions and 2 deletions

View File

@ -83,6 +83,9 @@ func newBeegoRequest(url, method string) *BeegoHttpRequest {
var resp http.Response
req.Method = method
req.Header = http.Header{}
req.Proto = "HTTP/1.1"
req.ProtoMajor = 1
req.ProtoMinor = 1
return &BeegoHttpRequest{url, &req, map[string]string{}, map[string]string{}, defaultSetting, &resp, nil}
}