Skip to content

allow extra leading new lines in response #116

@LeiYangGH

Description

@LeiYangGH

this library is great!
when i testing against my server, the library cannot detect the boundary.
after some debugging, i noticed our server adds a extra new line in response.
i changed the source a little and can perfectly run:

        private static string DetectBoundary(RebufferableBinaryReader reader)
        {
            // Presumably the boundary is --|||||||||||||| where -- is the stuff added on to
            // the front as per the protocol and ||||||||||||| is the part we care about.
            string line = null;
            while (string.IsNullOrWhiteSpace(line))
            {
                line = reader.ReadLine();
            }
//...
       }

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions