From 5047db05109770e77b17eddd3650f7baf7b5d794 Mon Sep 17 00:00:00 2001 From: jbhusson <jonah@elixxir.io> Date: Thu, 5 Jan 2023 13:47:21 -0500 Subject: [PATCH] add content-type header --- connect/webConn.go | 1 + 1 file changed, 1 insertion(+) diff --git a/connect/webConn.go b/connect/webConn.go index 73629ba..cb1610b 100644 --- a/connect/webConn.go +++ b/connect/webConn.go @@ -206,6 +206,7 @@ func (wc *webConn) isOnlineHelper(addr string, pingTimeout time.Duration) (time. } target := "https://" + addr + "/mixmessages.Gateway/RequestTlsCert" req, err := http.NewRequest("POST", target, nil) + req.Header.Add("content-type", "application/grpc-web+proto") if err != nil { jww.WARN.Printf("Failed to initiate request: %+v", err) return time.Since(start), false -- GitLab