FIX: add 'Content-Length' header for avatars