Skip to content

Commit 75a6ddd

Browse files
committed
add application/xml check
1 parent e927736 commit 75a6ddd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/github/repositories.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ func GetFileContents(getClient GetClientFn, getRawClient raw.GetRawClientFn, t t
604604
// Determine if content is text or binary
605605
isTextContent := strings.HasPrefix(contentType, "text/") ||
606606
contentType == "application/json" ||
607+
contentType == "application/xml" ||
607608
strings.HasSuffix(contentType, "+json") ||
608609
strings.HasSuffix(contentType, "+xml")
609610

0 commit comments

Comments
 (0)