mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 05:17:44 +00:00
Add content-type header to the request when creating project during replication
This commit is contained in:
parent
367c2b142f
commit
9889896e8a
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue
Block a user