lepture/python-livereload — pull request #61 by bugnano (2014-03-29 06:27:23+00:00)
Title: Fix Windows compatibility

This patch fixes 2 problems that occur when using livereload on Windows:

The first problem is that index.html was not fetched when the url ends with '/' (this is because Windows paths are separated with '\\', and os.path.join uses it).

The second problem is when handling binary files, Windows needs the file to be opened in binary mode, or else it converts the 0x0A characters into the 0x0D, 0x0A sequence.

This patch fixes both problems, and it has been succesfully tested both on Windows and on Linux.