Commit 122eb56
committed
Fix error downloading assets
When downloading assets using a fine grained token you will get a "can't
concat str to bytes" error. This is due to the fine grained token being
concatenated onto bytes in the line:
`request.add_header("Authorization", "Basic ".encode("ascii") + auth)`
This is better handled in the function `_construct_request` so I changed
the lines that construct the request in `download_file` to use the
function `_construct_request` and updated the function signature to
reflect that.1 parent a0fdae3 commit 122eb56
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
| 780 | + | |
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
785 | | - | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
786 | 792 | | |
787 | | - | |
788 | 793 | | |
789 | 794 | | |
790 | 795 | | |
| |||
1255 | 1260 | | |
1256 | 1261 | | |
1257 | 1262 | | |
| 1263 | + | |
| 1264 | + | |
1258 | 1265 | | |
1259 | 1266 | | |
1260 | 1267 | | |
| |||
0 commit comments