[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [websocket/master] Change request to *http.Request
commit e0bb5efd8d78d372711652ec061923debe7f5cb0
Author: Hooman <hoomanm@xxxxxxxxxxxxx>
Date: Tue Sep 12 21:52:44 2017 -0400
Change request to *http.Request
---
websocket/websocket.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/websocket/websocket.go b/websocket/websocket.go
index fac649b..73b1ce7 100644
--- a/websocket/websocket.go
+++ b/websocket/websocket.go
@@ -88,10 +88,10 @@ type WebSocket struct {
// messages.
messageBuf bytes.Buffer
// Request
- request http.Request
+ request *http.Request
}
-func (ws *WebSocket) Request() http.Request {
+func (ws *WebSocket) Request() *http.Request {
return ws.request
}
@@ -390,7 +390,7 @@ func (handler *HTTPHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
ws.Bufrw = bufrw
ws.IsClient = false
ws.MaxMessageSize = handler.Config.MaxMessageSize
- ws.request = *req
+ ws.request = req
// See RFC 6455 section 4.2.2, item 5 for these steps.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits