Skip to content

Commit

Permalink
ci: fix multipart conpatibility issue of gorequest for travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
moooofly committed Feb 11, 2019
1 parent 081e91b commit e29e067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ func Multipart(targetURL string, files ...string) {
case 1:
request.Post(targetURL).
Set("Cookie", "harbor-lang=zh-cn; beegosessionID="+c).
Type(gorequest.TypeMultipart).
Type("multipart").
SendFile(files[0]).
End(printStatus)
case 2:
request.Post(targetURL).
Set("Cookie", "harbor-lang=zh-cn; beegosessionID="+c).
Type(gorequest.TypeMultipart).
Type("multipart").
SendFile(files[0]).
SendFile(files[1]).
End(printStatus)
Expand Down

0 comments on commit e29e067

Please sign in to comment.