curl: newer versions omit the Expect header
authorMichael Wallner <mike@php.net>
Thu, 25 May 2023 09:27:07 +0000 (11:27 +0200)
committerMichael Wallner <mike@php.net>
Thu, 25 May 2023 13:12:08 +0000 (15:12 +0200)
fixes #129

tests/client025.phpt

index 4cb63afc915e6ca2f3f4ca32f8baad78cc1ab9f4..21f4c2db12619037f54edfbae5c3a5e22c31f2d4 100644 (file)
@@ -36,8 +36,8 @@ PUT / HTTP/1.1
 Accept: */*
 Content-Length: %d
 Content-Range: bytes 1-2/3
-Expect: 100-continue
-Host: localhost:%d
+%r(Expect: 100-continue
+)?%rHost: localhost:%d
 User-Agent: %s
 X-Original-Content-Length: %d