(zipStats os.FileInfo, writer *multipart.Writer)
| 174 | } |
| 175 | |
| 176 | func createZipPartWriter(zipStats os.FileInfo, writer *multipart.Writer) (io.Writer, error) { |
| 177 | h := make(textproto.MIMEHeader) |
| 178 | h.Set("Content-Disposition", `form-data; name="application"; filename="application.zip"`) |
| 179 | h.Set("Content-Type", "application/zip") |
| 180 | h.Set("Content-Length", fmt.Sprintf("%d", zipStats.Size())) |
| 181 | h.Set("Content-Transfer-Encoding", "binary") |
| 182 | return writer.CreatePart(h) |
| 183 | } |
no test coverage detected