Update front.go

This commit is contained in:
Deepzz
2017-03-10 09:27:34 +08:00
committed by GitHub
parent d03f327fb4
commit 5d24af11e5

View File

@@ -251,6 +251,7 @@ func HandleBeacon(c *gin.Context) {
return
}
req.Header.Set("User-Agent", ua)
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
res, err := http.DefaultClient.Do(req)
if err != nil {
logd.Error(err)