b3906673 by JessonChan

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

Conflicts:
	httplib/httplib.go
2 parents f684de23 35b4022e
...@@ -83,6 +83,9 @@ func newBeegoRequest(url, method string) *BeegoHttpRequest { ...@@ -83,6 +83,9 @@ func newBeegoRequest(url, method string) *BeegoHttpRequest {
83 var resp http.Response 83 var resp http.Response
84 req.Method = method 84 req.Method = method
85 req.Header = http.Header{} 85 req.Header = http.Header{}
86 req.Proto = "HTTP/1.1"
87 req.ProtoMajor = 1
88 req.ProtoMinor = 1
86 return &BeegoHttpRequest{url, &req, map[string]string{}, map[string]string{}, defaultSetting, &resp, nil} 89 return &BeegoHttpRequest{url, &req, map[string]string{}, map[string]string{}, defaultSetting, &resp, nil}
87 } 90 }
88 91
......
...@@ -106,10 +106,10 @@ func SliceDiff(slice1, slice2 []interface{}) (diffslice []interface{}) { ...@@ -106,10 +106,10 @@ func SliceDiff(slice1, slice2 []interface{}) (diffslice []interface{}) {
106 return 106 return
107 } 107 }
108 108
109 // SliceIntersect returns diff slice of slice1 - slice2. 109 // SliceIntersect returns slice that are present in all the slice1 and slice2.
110 func SliceIntersect(slice1, slice2 []interface{}) (diffslice []interface{}) { 110 func SliceIntersect(slice1, slice2 []interface{}) (diffslice []interface{}) {
111 for _, v := range slice1 { 111 for _, v := range slice1 {
112 if !InSliceIface(v, slice2) { 112 if InSliceIface(v, slice2) {
113 diffslice = append(diffslice, v) 113 diffslice = append(diffslice, v)
114 } 114 }
115 } 115 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!