puppetlabs/puppet — pull request #331 by joshcooper (2012-01-13 00:23:13+00:00)
Title: (#11929) serve files in binary mode

Previously, Windows agents were reading files in text mode when serving
them locally, such as when serving files from a local module, corrupting
them in the process.

This commit reads files in binary mode, which is a noop on Unix.

Serving files from remote puppet masters was fixed in #9983.