This commit is contained in:
Tyrel Souza 2019-05-15 23:55:49 -04:00
parent 662e15dd9a
commit bfc0370549
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0

View File

@ -16,7 +16,9 @@ func upload(directory string) {
// TODO: Add revision // TODO: Add revision
var body = map[string]string{ var body = map[string]string{
"@files[]": fileNames[0], // maybe use httpclient.addFormFile and do everything manually...
// https://github.com/ddliu/go-httpclient/blob/master/httpclient.go#L676
"@files[]": fileNames[0], // TODO: Add multiple files
} }
_, err := httpclient.WithHeaders(map[string]string{ _, err := httpclient.WithHeaders(map[string]string{