Small refactoring

The mock server still create the mime-type to check that everything is fine.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>