Adding support for X-Registry-Config header (and corresponding test)