mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Remove and restore some comments, after review
This commit is contained in:
parent
dfb68d7cfc
commit
2c2f93c022
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue