-
Notifications
You must be signed in to change notification settings - Fork 284
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
multipart request: always skip boundary, fix #1220 #1221
Conversation
I'd like to eventually add a validation that the |
Always skip the boundary when parsing a multi-part form part. Fixes #1220.
I think it's a good idea. Something like |
I think I'd go with something like |
I thought about validation as in
Why doesn't you use SemVer normally? Just increase patch number and release new version. Because I can't really get this bug fix. I'm stuck with 3 options: use old 0.7.23 or use alpha tag or edit local source of 0.7.24. I like neither of this options. |
Hm, I do intend to tag a new release shortly, but right now it doesn't make sense yet to switch to full SemVer (>=1.0.0), because more or less every release still contains some breaking changes or new features. But the plan is to split up the library into multiple pieces and tag some of them with a stable version shortly afterwards. But you can safely use the alpha tag for now, as there are no critical changes and I will not introduce any of those until 0.7.25. |
I'm receiving a EOF before end stream marker on this using the MultiPartPart script with FileMultiPart: https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/inet/webform.d#L262 I don't add CRLF to the end boundary, so I'm wondering if the readLine is erroneous or if I should append CRLF. |
According to RFC 1341 there is no CRLF required after the "--", so it looks like the correct thing to do would be to always read two bytes and require them to be either |
That's what I was assuming, I'll submit a pull request sometime today or tomorrow for this |
#1220