main/curl: fix tests

add patch sent to me from upstream author which fixes regression
introduced upstream
7 jobs for !7346 with curl in 11 minutes and 6 seconds
detached
Status Job ID Name Coverage
  Lint
passed #136449
docker-alpine x86_64
lint

00:00:24

 
  Build
passed #136454
docker-alpine ci-build aarch64
build-aarch64

00:09:43

passed #136455
docker-alpine ci-build armv7
build-armv7

00:10:14

passed #136453
docker-alpine ci-build ppc64le
build-ppc64le

00:10:40

passed #136452
docker-alpine ci-build s390x
build-s390x

00:08:09

passed #136451
docker-alpine ci-build x86
build-x86

00:08:52

passed #136450
docker-alpine ci-build x86_64
build-x86_64

00:08:50