Hi!

Can someone explain me why my grammar isn't working? Unfortunately i
can't figure it out :-(

Full script attached (42 lines) - the new lines in the script are
always only "\n"

The output:

TOP
|  request-line
|  |  method
|  |  * MATCH "CONNECT"
|  |  request-uri
|  |  * MATCH "ssl.gstatic.com:443"
|  |  http-version
|  |  * MATCH "HTTP/1.1"
|  |  crlf
|  |  * MATCH "\n"
|  * MATCH "CONNECT ssl.gstatic.com:443 HTTP/1.1\n"
|  headers
|  |  header
|  |  * MATCH "Proxy-Connection"
|  |  header-value
|  |  * MATCH "keep-alive\n"
|  |  crlf
|  |  * FAIL
|  * FAIL
* FAIL
Nil


It matches the request line's newline but not the headers.


Best regards,
David Santiago

Attachment: test.raku
Description: Binary data

Reply via email to