@@ -1518,7 +1518,11 @@ func (c *Client) generateSupportBundle(writer io.Writer, appInfo []byte) error {
15181518 // Write app support info
15191519 if len (appInfo ) > 0 {
15201520 appInfo = []byte (redactLog (string (appInfo )))
1521- appInfoWriter , err := zipWriter .Create ("info-app.json" )
1521+ appInfoWriter , err := zipWriter .CreateHeader (& zip.FileHeader {
1522+ Name : "info-app.json" ,
1523+ Modified : time .Now (),
1524+ Method : zip .Deflate ,
1525+ })
15221526 if err != nil {
15231527 return err
15241528 }
@@ -1529,7 +1533,11 @@ func (c *Client) generateSupportBundle(writer io.Writer, appInfo []byte) error {
15291533 }
15301534
15311535 // Write log tail
1532- logTailFileWriter , err := zipWriter .Create ("log-tail.txt" )
1536+ logTailFileWriter , err := zipWriter .CreateHeader (& zip.FileHeader {
1537+ Name : "log-tail.txt" ,
1538+ Modified : time .Now (),
1539+ Method : zip .Deflate ,
1540+ })
15331541 if err != nil {
15341542 return err
15351543 }
@@ -1555,7 +1563,11 @@ func (c *Client) generateSupportBundle(writer io.Writer, appInfo []byte) error {
15551563 return err
15561564 }
15571565 jsonData = []byte (redactLog (string (jsonData )))
1558- jsonWriter , err := zipWriter .Create ("info.json" )
1566+ jsonWriter , err := zipWriter .CreateHeader (& zip.FileHeader {
1567+ Name : "info.json" ,
1568+ Modified : time .Now (),
1569+ Method : zip .Deflate ,
1570+ })
15591571 if err != nil {
15601572 return err
15611573 }
@@ -1566,7 +1578,11 @@ func (c *Client) generateSupportBundle(writer io.Writer, appInfo []byte) error {
15661578
15671579 // Goroutine profile
15681580 if p := pprof .Lookup ("goroutine" ); p != nil {
1569- goroutineWriter , err := zipWriter .Create ("goroutines.pprof" )
1581+ goroutineWriter , err := zipWriter .CreateHeader (& zip.FileHeader {
1582+ Name : "goroutines.pprof" ,
1583+ Modified : time .Now (),
1584+ Method : zip .Deflate ,
1585+ })
15701586 if err != nil {
15711587 return err
15721588 }
0 commit comments