[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/main] Remove and restore some comments, after review
commit 2c2f93c022c64ad45f5d471b692eb6317b50d209
Author: Arlo Breault <arlolra@xxxxxxxxx>
Date: Thu Jul 8 15:35:04 2021 -0400
Remove and restore some comments, after review
---
broker/http.go | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/broker/http.go b/broker/http.go
index e30e442..9ae2560 100644
--- a/broker/http.go
+++ b/broker/http.go
@@ -138,6 +138,10 @@ func clientOffers(i *IPC, w http.ResponseWriter, r *http.Request) {
}
// Handle the legacy version
+ //
+ // We support two client message formats. The legacy format is for backwards
+ // combatability and relies heavily on HTTP headers and status codes to convey
+ // information.
isLegacy := false
if len(body) > 0 && body[0] == '{' {
isLegacy = true
@@ -161,7 +165,6 @@ func clientOffers(i *IPC, w http.ResponseWriter, r *http.Request) {
var response []byte
err = i.ClientOffers(arg, &response)
if err != nil {
- // Assert err == messages.ErrInternal
log.Println(err)
w.WriteHeader(http.StatusInternalServerError)
return
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits