|
@@ -65,6 +65,8 @@ Answer::Answer( const char *answer )
|
|
TextReader reader( new Text( answer ) );
|
|
TextReader reader( new Text( answer ) );
|
|
// parse header
|
|
// parse header
|
|
Text *line = reader.leseZeile();
|
|
Text *line = reader.leseZeile();
|
|
|
|
+ line->remove( "\r\n" );
|
|
|
|
+ line->remove( "\n" );
|
|
header += *line;
|
|
header += *line;
|
|
header += "\n";
|
|
header += "\n";
|
|
int trenn = line->positionVon( " " );
|
|
int trenn = line->positionVon( " " );
|
|
@@ -82,6 +84,8 @@ Answer::Answer( const char *answer )
|
|
while( !reader.istEnde() )
|
|
while( !reader.istEnde() )
|
|
{
|
|
{
|
|
Text *line = reader.leseZeile();
|
|
Text *line = reader.leseZeile();
|
|
|
|
+ line->remove( "\r\n" );
|
|
|
|
+ line->remove( "\n" );
|
|
if( line->getLength() > 0 )
|
|
if( line->getLength() > 0 )
|
|
{
|
|
{
|
|
header += *line;
|
|
header += *line;
|