Mercurial > hg > ucis.core
changeset 4:9e2e6433f57a
Small fix for HTTP Server - Flash Cross Domain Policy File support
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Tue, 08 Jan 2013 14:48:43 +0100 |
parents | 0cc7be03775f |
children | 2933f7750542 |
files | Net/HTTP.cs |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Net/HTTP.cs Tue Jan 08 02:13:27 2013 +0100 +++ b/Net/HTTP.cs Tue Jan 08 14:48:43 2013 +0100 @@ -104,10 +104,10 @@ while (true) { int b = Stream.ReadByte(); if (b == -1) { - if (s.Length == null) return null; + if (s.Length == 0) return null; break; } else if (b == 13) { - } else if (b == 10) { + } else if (b == 10 || b == 0) { break; } else { s.Append((Char)b);