user-agent for posts as well

This commit is contained in:
Ted Unangst 2019-05-20 10:48:42 -04:00
parent 24006757e0
commit 5e7ed058c1
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ func PostMsg(keyname string, key *rsa.PrivateKey, url string, msg []byte) error
if err != nil {
return err
}
req.Header.Set("User-Agent", "honksnonk/5.0")
req.Header.Set("Content-Type", theonetruename)
zig(keyname, key, req, msg)
resp, err := client.Do(req)