Commit 487b8912 authored by justcoding121's avatar justcoding121 Committed by justcoding121

fix binary reader

parent 04539fb8
......@@ -20,13 +20,10 @@ namespace Titanium.HTTPProxyServer
public string ReadLine()
{
try
{
char[] buf = new char[1];
StringBuilder _readBuffer = new StringBuilder();
try
{
var charsRead = 0;
char lastChar = new char();
......@@ -48,7 +45,11 @@ namespace Titanium.HTTPProxyServer
}
return _readBuffer.ToString();
}
catch { throw new EndOfStreamException(); }
catch (IOException)
{ return _readBuffer.ToString(); }
catch (Exception e)
{ throw e; }
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment