1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server/httputils
Stephen J Day ed6b8d61c6 api/server/httputils: ensure consistent status code
Error code resolution is powered by string matching. Not the greatest
thing in the world and I hope no one is proud of this code, but it
works. However, because a map is used, the iteration order of the map is
random, such that if an error matches two of the snippets, it may return
a different error code depending on the seed of the hashmap. This change
converts it to use a slice instead.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
(cherry picked from commit 3484e02590)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2016-12-05 14:30:39 -08:00
..
decoder.go Remove runconfig package dependency from image and container routers. 2016-03-28 16:23:51 -04:00
errors.go api/server/httputils: ensure consistent status code 2016-12-05 14:30:39 -08:00
form.go Remove defensive check of mux vars handling. 2015-10-14 10:31:09 -07:00
form_test.go Resolves #16458 - filter events by labels. 2015-10-02 16:33:20 -04:00
httputils.go fix typos 2016-06-02 17:17:22 +08:00