Returning proper content type in executor server