Skip to content

Commit 05550ee

Browse files
committed
fixes
1 parent 0a633f5 commit 05550ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func flattenParams(fullParams map[string][]string) map[string]string {
6363

6464
func newRequest(hr *http.Request, hc http.ResponseWriter) *Request {
6565

66-
remoteAddr, _ := net.ResolveTCPAddr(hc.RemoteAddr())
66+
remoteAddr, _ := net.ResolveTCPAddr(hr.RemoteAddr)
6767

6868
req := Request{
6969
Method: hr.Method,

web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func (c *httpConn) StartResponse(status int) { c.conn.WriteHeader(status) }
213213
func (c *httpConn) SetHeader(hdr string, val string, unique bool) {
214214
//right now unique can't be implemented through the http package.
215215
//see issue 488
216-
c.conn.SetHeader(hdr, val)
216+
c.conn.Header().Set(hdr, val)
217217
}
218218

219219
func (c *httpConn) WriteString(content string) {

0 commit comments

Comments
 (0)