Skip to content
Snippets Groups Projects
Commit 5047db05 authored by Jonah Husson's avatar Jonah Husson
Browse files

add content-type header

parent eef0b403
Branches
Tags
2 merge requests!61Hotfix/fix is online,!39Merge release into master
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment