File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ func flattenParams(fullParams map[string][]string) map[string]string {
63
63
64
64
func newRequest (hr * http.Request , hc http.ResponseWriter ) * Request {
65
65
66
- remoteAddr , _ := net .ResolveTCPAddr (hc .RemoteAddr () )
66
+ remoteAddr , _ := net .ResolveTCPAddr (hr .RemoteAddr )
67
67
68
68
req := Request {
69
69
Method : hr .Method ,
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ func (c *httpConn) StartResponse(status int) { c.conn.WriteHeader(status) }
213
213
func (c * httpConn ) SetHeader (hdr string , val string , unique bool ) {
214
214
//right now unique can't be implemented through the http package.
215
215
//see issue 488
216
- c .conn .SetHeader (hdr , val )
216
+ c .conn .Header (). Set (hdr , val )
217
217
}
218
218
219
219
func (c * httpConn ) WriteString (content string ) {
You can’t perform that action at this time.
0 commit comments