[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Comment tweaking.
commit a54c6fe67b3ab9be1f14efcc8898a26b7c60f004
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Sun Aug 11 19:31:12 2013 -0700
Comment tweaking.
---
websocket-transport/src/websocket-server/websocket-server.go | 4 ++--
websocket-transport/src/websocket/websocket.go | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/websocket-transport/src/websocket-server/websocket-server.go b/websocket-transport/src/websocket-server/websocket-server.go
index 065b76b..d3494c6 100644
--- a/websocket-transport/src/websocket-server/websocket-server.go
+++ b/websocket-transport/src/websocket-server/websocket-server.go
@@ -57,8 +57,8 @@ func Log(format string, v ...interface{}) {
}
// An abstraction that makes an underlying WebSocket connection look like an
-// io.ReadWriteCloser. It internally takes care of things like base64 encoding and
-// decoding.
+// io.ReadWriteCloser. It internally takes care of things like base64 encoding
+// and decoding.
type webSocketConn struct {
Ws *websocket.WebSocket
Base64 bool
diff --git a/websocket-transport/src/websocket/websocket.go b/websocket-transport/src/websocket/websocket.go
index d3e8135..f6e8c8b 100644
--- a/websocket-transport/src/websocket/websocket.go
+++ b/websocket-transport/src/websocket/websocket.go
@@ -285,7 +285,7 @@ func commaSplit(s string) []string {
return result
}
-// Returns true iff one of the strings in haystack is needle.
+// Returns true iff one of the strings in haystack is needle (case-insensitive).
func containsCase(haystack []string, needle string) bool {
for _, e := range haystack {
if strings.ToLower(e) == strings.ToLower(needle) {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits