You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the new crlf="yes" support from commit ca15b75 should only be applied to the section where it is used, and not on the entire test case like it is now. Test 2500 only uses it for <data> so only that content should get crlf replaced.
The conversion could then be done explicitly without caring if it looks like HTTP or not.
Eh, no. Because then we also add CRLF to the body in <data> etc and that changes the size of it...
I remember myself walking down that line of thinking. That is why I sticked to the HTTP pattern that was in place for hyper. The trouble we have now is that it also replaces \r\n with \r\r\n, it seems.
I'm trying out a few things in #10010. I want to be able to mark individual sections as crlf="yes" so that we long-term can move away from using CRLF lines within the source test files .
A challenge is to introduce such a new/better/different system in a way that can be gradually transitioned into, without us having to update 800+ test cases in a single blow.
I was thinking of gradually changing test cases to use the new section. The old way of setting the server response could be left unchanged. But that is just a thought, you know best.
Activity
bagder commentedon Dec 1, 2022
The conversion could then be done explicitly without caring if it looks like HTTP or not.
bagder commentedon Dec 1, 2022
Eh, no. Because then we also add CRLF to the body in
<data>etc and that changes the size of it...icing commentedon Dec 1, 2022
I remember myself walking down that line of thinking. That is why I sticked to the HTTP pattern that was in place for hyper. The trouble we have now is that it also replaces \r\n with \r\r\n, it seems.
bagder commentedon Dec 1, 2022
I'm trying out a few things in #10010. I want to be able to mark individual sections as
crlf="yes"so that we long-term can move away from using CRLF lines within the source test files .icing commentedon Dec 1, 2022
Another idea would be to have some sort of
<reply><http-header>...section where crlf is always normalized.bagder commentedon Dec 1, 2022
Or just a
<crlf>...</crlf>within<data>etcbagder commentedon Dec 1, 2022
A challenge is to introduce such a new/better/different system in a way that can be gradually transitioned into, without us having to update 800+ test cases in a single blow.
icing commentedon Dec 1, 2022
I was thinking of gradually changing test cases to use the new section. The old way of setting the server response could be left unchanged. But that is just a thought, you know best.
bagder commentedon Dec 1, 2022
If I can get this working with my current simpler approach, I think I'll stick to this for now.
runtests: do CRLF replacements per section only