Commit 6154ecf
fix: omit Authorization header in listTags when no access token
Sending an empty Bearer token made GitHub reject matching-refs on public
repos with 401. Drop the header entirely when no token is set so
unauthenticated requests succeed, and default $accessToken to '' so
empty() is safe on an uninitialized adapter.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 5f2299e commit 6154ecf
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
| 812 | + | |
| 813 | + | |
813 | 814 | | |
814 | 815 | | |
815 | 816 | | |
| |||
0 commit comments