mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 18:55:18 +01: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.SetBasicAuth(c.dstUsr, c.dstPwd)
|
||||||
|
req.Header.Set(http.CanonicalHeaderKey("content-type"), "application/json")
|
||||||
|
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
|
Loading…
Reference in New Issue
Block a user