mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-14 02:41:43 +01:00
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:
commit
a2f20801c0
@ -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