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

SIP Parser is not in compliance of RFC #9

Open
alexzubovsky opened this issue Jul 16, 2021 · 0 comments
Open

SIP Parser is not in compliance of RFC #9

alexzubovsky opened this issue Jul 16, 2021 · 0 comments

Comments

@alexzubovsky
Copy link

https://github.com/davehorton/drachtio-sip/blob/75f5dac8d128ceb6bf04bf288f816a51c23fbdd9/lib/parser.js#L395

By https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html, the boundary starts with \r\n-- and following \r\n\ belongs to the segment:

        delimiter := CRLF "--" boundary   ; taken from  Content-Type 
        field. 
                                       ;   when   content-type    is 
        multipart 
                                     ; There must be no space 
                                     ; between "--" and boundary. 
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

No branches or pull requests

1 participant