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 3484e02590
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>
2016-11-16 18:58:55 -08:00
..
decoder.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
errors.go api/server/httputils: ensure consistent status code 2016-11-16 18:58:55 -08:00
form.go Remove defensive check of mux vars handling. 2015-10-14 10:31:09 -07:00
form_test.go
httputils.go api/server/httputils: compile with go < 1.7 2016-10-04 12:01:49 +02:00
httputils_write_json.go api/server/httputils: compile with go < 1.7 2016-10-04 12:01:49 +02:00
httputils_write_json_go16.go api/server/httputils: compile with go < 1.7 2016-10-04 12:01:49 +02:00