//
// if handled == false, sendFile performed no work.
func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) {
- // FreeBSD, DragonFly and Solaris use 0 as the "until EOF" value.
+ // Darwin, FreeBSD, DragonFly and Solaris use 0 as the "until EOF" value.
// If you pass in more bytes than the file contains, it will
// loop back to the beginning ad nauseam until it's sent
// exactly the number of bytes told to. As such, we need to
remain = fi.Size()
}
- // The other quirk with FreeBSD/DragonFly/Solaris's sendfile
+ // The other quirk with Darwin/FreeBSD/DragonFly/Solaris's sendfile
// implementation is that it doesn't use the current position
// of the file -- if you pass it offset 0, it starts from
// offset 0. There's no way to tell it "start from current