Commit c0ee1a9
committed
fix: handle empty files in get_file_contents
1. Empty (0-byte) files caused an unhandled error because the GitHub API
returns null content with base64 encoding for them; GetContent() fails
with "malformed response: base64 encoding of null content". Return
empty text/plain content directly, bypassing decoding entirely.1 parent 851030c commit c0ee1a9
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
734 | 748 | | |
735 | 749 | | |
736 | 750 | | |
| |||
0 commit comments