Fix overflow, diagram zoom, task-switch stall and other QA findings
This commit is contained in:
@@ -22,9 +22,9 @@ import (
|
||||
|
||||
func (s *Server) ConnectClient(w http.ResponseWriter, r *http.Request) {
|
||||
id := r.Header.Get("Byre-Client")
|
||||
host := r.Header.Get("Byre-Host")
|
||||
host := clientHost(r)
|
||||
if id == "" || host == "" {
|
||||
writeError(w, http.StatusBadRequest, errors.New("missing Byre-Client or Byre-Host"))
|
||||
writeError(w, http.StatusBadRequest, errors.New("missing Byre-Client or Byre-Host, or Byre-Host isn't percent-encoded"))
|
||||
return
|
||||
}
|
||||
|
||||
@@ -40,9 +40,9 @@ func (s *Server) ConnectClient(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func (s *Server) SetClientSync(w http.ResponseWriter, r *http.Request) {
|
||||
id := r.Header.Get("Byre-Client")
|
||||
host := r.Header.Get("Byre-Host")
|
||||
host := clientHost(r)
|
||||
if id == "" || host == "" {
|
||||
writeError(w, http.StatusBadRequest, errors.New("missing Byre-Client or Byre-Host"))
|
||||
writeError(w, http.StatusBadRequest, errors.New("missing Byre-Client or Byre-Host, or Byre-Host isn't percent-encoded"))
|
||||
return
|
||||
}
|
||||
sync := api.ClientSync{}
|
||||
|
||||
Reference in New Issue
Block a user