adds Content-Type header to rps server response with mime type based on file extension