Merge pull request #3597 from ywk253100/171110_bug_fix

Add content-type header to the request when creating project during replication
This commit is contained in:
Daniel Jiang 2017-11-12 22:54:15 -06:00 committed by GitHub
commit a2f20801c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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{