summaryrefslogtreecommitdiffstats
path: root/pkg/commands/oscommands/os_test.go
diff options
context:
space:
mode:
authorMoritz Haase <Moritz.Haase@bmw.de>2022-03-18 10:59:58 +0100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-18 22:19:45 +1100
commit4b56d428ffda44cf433d7cfdd83ea99417ec3e86 (patch)
tree2b86c37210873ffb8802d0c208263dec6ab8a6ba /pkg/commands/oscommands/os_test.go
parent4fde97b066eef9742c96dac8b5a15468e003ec92 (diff)
pkg/updates: Fix resource availability check in Updater
When trying to download an update, a 'Could not find any binary at ...' error message is shown erroneously. This happens since when checking the availability, a response code of 403 ('Forbidden') instead of 200 ('OK') is expected. Since 'http.Head()' handles redirects automatically, there is no need to also accept 3xx status codes. Fixes #1450.
Diffstat (limited to 'pkg/commands/oscommands/os_test.go')
0 files changed, 0 insertions, 0 deletions