Skip to content
Snippets Groups Projects
Unverified Commit b5c33161 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Add fallback to avatar file

parent e4c34638
No related branches found
No related tags found
No related merge requests found
...@@ -114,7 +114,7 @@ Meteor.startup -> ...@@ -114,7 +114,7 @@ Meteor.startup ->
res.setHeader 'Cache-Control', 'public, max-age=0' res.setHeader 'Cache-Control', 'public, max-age=0'
res.setHeader 'Expires', '-1' res.setHeader 'Expires', '-1'
res.setHeader 'Last-Modified', file.uploadDate?.toUTCString() or new Date().toUTCString() res.setHeader 'Last-Modified', file.uploadDate?.toUTCString() or new Date().toUTCString()
res.setHeader 'Content-Type', file.contentType res.setHeader 'Content-Type', file.contentType or 'image/jpeg'
res.setHeader 'Content-Length', file.length res.setHeader 'Content-Length', file.length
file.readStream.pipe res file.readStream.pipe res
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment