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
Stephen J Day 8b9b8bd930 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-11-18 13:34:05 -08:00
..
httputils api/server/httputils: ensure consistent status code 2016-11-18 13:34:05 -08:00
middleware Revise swarm init/update flags, add unlocking capability 2016-11-09 16:09:00 -08:00
router Add reference filter and deprecated filter param… 2016-11-11 15:34:01 +01:00
middleware.go change comment 2016-08-26 18:30:41 +08:00
profiler.go
router_swapper.go
server.go fix typo 2016-11-18 13:27:01 -08:00
server_test.go