notes
This commit is contained in:
parent
662e15dd9a
commit
bfc0370549
4
scan.go
4
scan.go
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user