#fix:fix fmt check error

fix fmt check error
This commit is contained in:
Farmerx 2019-01-22 09:37:59 +08:00 committed by GitHub
parent 3a820eb012
commit 4875c6e347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,12 +53,9 @@ func createMultipartRequest() *http.Request {
must(mw.WriteField("time_location", "31/12/2016 14:55"))
must(mw.WriteField("names[a]", "thinkerou"))
must(mw.WriteField("names[b]", "tianou"))
must(mw.WriteField("arraymap[0][process_md5]", "c78655bc80301d76ed4fef1c1ea40a7d"))
must(mw.WriteField("arraymap[0][process_path]", "c:/windows/system32/svchost.exe"))
must(mw.WriteField("arraymap[0][process_name]", "svchost.exe"))
//must(mw.WriteField("arraymap[1][process_name]", "svchost1.exe"))
req, err := http.NewRequest("POST", "/", body)
must(err)
req.Header.Set("Content-Type", MIMEMultipartPOSTForm+"; boundary="+boundary)