diff --git a/.woodpecker.star b/.woodpecker.star index 96bc55d3d..ceeb8172e 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -1231,7 +1231,7 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty = "commands": [ "curl -v -X PUT '%s/remote.php/webdav/test.wopitest' -k --fail --retry-connrefused --retry 7 --retry-all-errors -u admin:admin -D headers.txt" % OC_URL, "cat headers.txt", - "export FILE_ID=$(cat headers.txt | sed -n -e 's/^.*Oc-Fileid: //p')", + "export FILE_ID=$(cat headers.txt | sed -n -e 's/^.*oc-fileid: //Ip')", "export URL=\"%s/app/open?app_name=FakeOffice&file_id=$FILE_ID\"" % OC_URL, "export URL=$(echo $URL | tr -d '[:cntrl:]')", "curl -v -X POST \"$URL\" -k --fail --retry-connrefused --retry 7 --retry-all-errors -u admin:admin > open.json", diff --git a/pkg/service/http/service.go b/pkg/service/http/service.go index ae8d67082..4c184c616 100644 --- a/pkg/service/http/service.go +++ b/pkg/service/http/service.go @@ -49,6 +49,8 @@ func NewService(opts ...Option) (Service, error) { } tlsConfig := &tls.Config{ Certificates: []tls.Certificate{cert}, + MinVersion: tls.VersionTLS12, + NextProtos: []string{"h2", "http/1.1"}, } mServer = mhttps.NewServer(server.TLSConfig(tlsConfig)) } else {