This repository was archived by the owner on Mar 5, 2024. It is now read-only.
Commit 59fb5db
Metadata server: Use 301 rather than 308 redirects (#173)
In 20b1c39, requests for the
security-credentials URL were changed to redirect to
security-credentials/ with a trailing slash. However, this uses
http.StatusPermanentRedirect, which corresponds to a 308, whereas
the real metadata API issues a 301 redirect
(http.StatusMovedPermanently).
Some clients do not handle the 308 correctly and fail to retrieve
credentials. We've noticed broken behaviour in the Go sdk version
1.4.10, which is used by docker-machine.1 parent e3ce9c8 commit 59fb5db
File tree
2 files changed
+2
-2
lines changed- pkg/aws/metadata
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments