-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Should parse
fail when a parameter has non-decodable field?
#14
Comments
Hi @alexstrat would you be willing to fill in your answers? My answers to those questions have already been codified into this module; they were more questions I was hoping you could answer to help me understand the request you're making. |
Ah sorry, did not get the extent of your questions. As far as I was concerned, I only used the library to make the difference between a download ( Though:
For my specific use case, I was only interested in the
The result of parse, only. Can probably have an option to let
An option of
No idea. While it can be a good enlightenment, I don't think |
Hi @alexstrat after reading you responses, I'm not sure you really understanding the workings of the header to really give answers, no offense :) Especially if you are suggesting to not even follow the RFC. If we don't follow it, what are we following? If you can provide a spec, perhaps some complete ABNF grammar to how the parse should function in this non-strict mode, that would work, but from what your use-case is, it seems simpler for you to just |
Oh I'm sorry to see you disappointed by my answers :( I think the question is still open though. |
Sure, but there isn't really a description to program against. For example, a regular expression either returns a result or not, so "The result of parse, only" would always be no result on a failure, probably not what you're looking for. If we don't follow the RFC, what are we following? If you can provide a spec, perhaps some complete ABNF grammar to how the parse should function in this non-strict mode, that would work. |
Related to #13
Should
parse
fail when content-disposition header contains a parameter which field is not decodable ?Today it fails. Shouldn't it only ignore the parameter and move on ?
The text was updated successfully, but these errors were encountered: