Mercurial > eldonilo > avatar
changeset 21:46c42ec52680
Fix the MIME type and encoding of gravatar avatars.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 16 Jul 2011 14:07:50 +0200 |
parents | e4916f1763e5 |
children | 9e21bd93f79d |
files | avatar.js |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/avatar.js +++ b/avatar.js @@ -123,8 +123,7 @@ if (config.useGravatar) if (r.statusCode != 200) return svgError(res, message + ' Additionaly, no gravatar available.'); - res.writeHead(200, r.headers['Content-Type']); - r.setEncoding('utf8'); + res.writeHead(200, {'Content-Type': r.headers['content-type']}); r.on('data', function(chunk) { res.write(chunk); });