Commit c2d658b
authored
fix: relaxed Content-Type checks for CLI download (#189)
This PR fixes download failure for Windows .exe binaries by relaxing
strict Content-Type checks. Previously, the plugin only accepted
application/octet-stream, causing failures when .exe files were served
as application/x-msdos-executable by some servers.
- resolves #1871 parent a68ab3a commit c2d658b
File tree
2 files changed
+14
-1
lines changed- src/main/kotlin/com/coder/toolbox/cli/downloader
2 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
28 | 40 | | |
29 | 41 | | |
30 | 42 | | |
| |||
52 | 64 | | |
53 | 65 | | |
54 | 66 | | |
55 | | - | |
| 67 | + | |
56 | 68 | | |
57 | 69 | | |
58 | 70 | | |
| |||
0 commit comments