hyper: customize test1274 to how hyper unfolds headers#9217
hyper: customize test1274 to how hyper unfolds headers#9217seanmonstar wants to merge 1 commit intocurl:masterfrom
Conversation
|
Hm, curious. I agree that it looks weird as the change seems fine. I need to look into it. |
|
The issue here is quite simply that the built-in code does no unfolding of the headers that it stores with |
|
I propose we make a conditional in the test case, like this: index e789a7232..785f74768 100644
--- a/tests/data/test1274
+++ b/tests/data/test1274
@@ -59,17 +59,25 @@ Accept: */*
</protocol>
<file name="log/out%TESTNUMBER">
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
+%if hyper
+Server: test-server/ fake folded^M
+%else
Server: test-server/
fake
folded
+%endif
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498"
Content-Length: 6
+%if hyper
+Connection: close^M
+%else
Connection:
close
+%endif
</file>
</verify>
</testcase> |
|
I think that's what I did in this PR, but maybe I'm missing an important detail. |
|
Ah, yes now I see it, you edited the New edit/proposal attached. Gzipped to make the line endings stick. This version makes the test work for me. |
|
If you have no objections I can merge it like that. |
|
Ohhh, I see now. I had done them in the wrong section. Thanks for clarifying! Sure, no objections here :) |
|
Thanks! |
I tried following the way I see some other test data files do this, but after I made the changes locally and re-run
./runtests.pl 1274, it still sees the old output. Perhaps there's a step inmake testthat I'm skipping locally?