kassner / log-parser

PHP Web Server Log Parser Library
Apache License 2.0
334 stars 64 forks source link

HTTP/2 ? #26

Closed arsenik closed 6 years ago

arsenik commented 7 years ago
'%r' => '(?P<request>(?:(?:[A-Z]+) .+? HTTP/(1|2).(?:0|1))|-|)',
sergey-nagaytsev commented 6 years ago

Here's my actual patch from project fixed right away, applied by cweagans/composer-patches:

build/patches/php/kassner/log-parser/kassner__log-parser__http_2-0.patch

--- a/src/Kassner/LogParser/LogParser.php   2018-03-20 10:28:18.757395206 +0300
+++ b/src/Kassner/LogParser/LogParser.php   2018-03-20 10:28:44.192488560 +0300
@@ -22 +22 @@
-        '%r' => '(?P<request>(?:(?:[A-Z]+) .+? HTTP/1.(?:0|1))|-|)',
+        '%r' => '(?P<request>(?:(?:[A-Z]+) .+? HTTP/(1|2).(?:0|1))|-|)',
kassner commented 6 years ago

@sergey-nagaytsev @arsenik 1.4.0 released with partial HTTP2 support. Let me know if you find something wrong. Thanks!