@@ -33,19 +33,7 @@ off=61 header_field complete
3333off=62 len=7 span[header_value]="chunked"
3434off=71 header_value complete
3535off=73 headers complete status=200 v=1/1 flags=208 content_length=0
36- off=79 chunk header len=37
37- off=79 len=35 span[body]="This is the data in the first chunk"
38- off=114 len=1 span[body]=cr
39- off=115 len=1 span[body]=lf
40- off=118 chunk complete
41- off=122 chunk header len=28
42- off=122 len=26 span[body]="and this is the second one"
43- off=148 len=1 span[body]=cr
44- off=149 len=1 span[body]=lf
45- off=152 chunk complete
46- off=157 chunk header len=0
47- off=159 chunk complete
48- off=159 message complete
36+ off=75 error code=12 reason="Invalid character in chunk size"
4937```
5038
5139### ` chunked ` before other transfer-encoding
@@ -148,4 +136,36 @@ off=75 len=1 span[body]=cr
148136off=76 len=1 span[body]=lf
149137off=77 len=1 span[body]=cr
150138off=78 len=1 span[body]=lf
151- ```
139+ ```
140+
141+ ### No semicolon before chunk parameters
142+
143+ <!-- meta={"type": "response"} -->
144+ ``` http
145+ HTTP/1.1 200 OK
146+ Host: localhost
147+ Transfer-encoding: chunked
148+
149+ 2 erfrferferf
150+ aa
151+ 0 rrrr
152+
153+
154+ ```
155+
156+ ``` log
157+ off=0 message begin
158+ off=13 len=2 span[status]="OK"
159+ off=17 status complete
160+ off=17 len=4 span[header_field]="Host"
161+ off=22 header_field complete
162+ off=23 len=9 span[header_value]="localhost"
163+ off=34 header_value complete
164+ off=34 len=17 span[header_field]="Transfer-encoding"
165+ off=52 header_field complete
166+ off=53 len=7 span[header_value]="chunked"
167+ off=62 header_value complete
168+ off=64 headers complete status=200 v=1/1 flags=208 content_length=0
169+ off=65 error code=12 reason="Invalid character in chunk size"
170+ ```
171+
0 commit comments