You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by "Luke-Roy-IBM (via GitHub)" <gi...@apache.org> on 2023/04/04 08:19:07 UTC

[GitHub] [openwhisk-runtime-go] Luke-Roy-IBM commented on a diff in pull request #191: Add tar.gz support to the go Proxy

Luke-Roy-IBM commented on code in PR #191:
URL: https://github.com/apache/openwhisk-runtime-go/pull/191#discussion_r1156897138


##########
openwhisk/filetype.go:
##########
@@ -65,3 +65,13 @@ func IsZip(buf []byte) bool {
 		(buf[2] == 0x3 || buf[2] == 0x5 || buf[2] == 0x7) &&
 		(buf[3] == 0x4 || buf[3] == 0x6 || buf[3] == 0x8)
 }
+
+// IsTarGz checks if the given file is a valid tar.gz file
+func IsTarGz(buf []byte) bool {

Review Comment:
   Added your suggestions 👍 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org