fix a etags bug when sending a file stream with a name

When sending a file stream with a name, but the file doesn't exist,
when adding etags, an exception will raise. `OSError: [Errno 2] No such file or directory:`