Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extra trailing \r\n #2

Closed
wants to merge 1 commit into from
Closed

Remove extra trailing \r\n #2

wants to merge 1 commit into from

Conversation

bonan
Copy link

@bonan bonan commented Mar 10, 2017

Both ContentLengthImpl.String() and SIPMessage.String() append core.SIPSeparatorNames_NEWLINE.

In addition to SIPRequest.String() adding another newline, empty messages will have 3 newlines, resulting in responses like:

SIP/2.0 400 Content-Length mis-match

@rainliu rainliu closed this Mar 12, 2017
@rainliu rainliu reopened this Mar 12, 2017
@rainliu
Copy link
Owner

rainliu commented Mar 12, 2017

I don't think it is a bug. It still follows the spec.

@rainliu rainliu closed this Mar 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants