Add content-type header to the request when creating project during replication

This commit is contained in:
Wenkai Yin 2017-11-10 16:08:13 +08:00
parent 367c2b142f
commit 9889896e8a

View File

@ -290,6 +290,7 @@ func (c *Checker) createProject(project *models.Project) error {
}
req.SetBasicAuth(c.dstUsr, c.dstPwd)
req.Header.Set(http.CanonicalHeaderKey("content-type"), "application/json")
client := &http.Client{
Transport: &http.Transport{