)]}'
{"swift/common/middleware/versioned_writes.py":[{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"cf624f548a888a4d6ff6cef924b576a1d9ec62ed","unresolved":false,"context_lines":[{"line_number":766,"context_line":"            \u0027sysmeta\u0027, {}).get(\u0027versions-mode\u0027, \u0027stack\u0027)"},{"line_number":767,"context_line":"        if req.headers.get(\u0027X-Backend-Versioning-Mode-Override\u0027):"},{"line_number":768,"context_line":"            versioning_mode \u003d req.headers["},{"line_number":769,"context_line":"                \u0027X-Backend-Versioning-Mode-Override\u0027]"},{"line_number":770,"context_line":"        if not versions_cont:"},{"line_number":771,"context_line":"            versions_cont \u003d container_info.get(\u0027versions\u0027)"},{"line_number":772,"context_line":"            # if allow_versioned_writes is not set in the configuration files"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba2be162_cb787ef5","line":769,"updated":"2017-03-01 21:55:16.000000000","message":"It could be worthwhile to check that the header value is one of the expected values (particularly if this ever ended up being exposed to clients) since at line we have a catch-all \"else\"...so if someone mistyped \"histry\" they\u0027d end up with stack mode. (Granted, that is less likely if the only user of this feature is other middleware).","commit_id":"c50eb138ea2e2fc16c01ff5b59513dab434a8106"}]}
