Skip to content

Commit b19307f

Browse files
committed
allow http2 connections to proxy
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
1 parent db3178c commit b19307f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.woodpecker.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty =
12311231
"commands": [
12321232
"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,
12331233
"cat headers.txt",
1234-
"export FILE_ID=$(cat headers.txt | sed -n -e 's/^.*Oc-Fileid: //p')",
1234+
"export FILE_ID=$(cat headers.txt | sed -n -e 's/^.*oc-fileid: //Ip')",
12351235
"export URL=\"%s/app/open?app_name=FakeOffice&file_id=$FILE_ID\"" % OC_URL,
12361236
"export URL=$(echo $URL | tr -d '[:cntrl:]')",
12371237
"curl -v -X POST \"$URL\" -k --fail --retry-connrefused --retry 7 --retry-all-errors -u admin:admin > open.json",

pkg/service/http/service.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ func NewService(opts ...Option) (Service, error) {
4949
}
5050
tlsConfig := &tls.Config{
5151
Certificates: []tls.Certificate{cert},
52+
MinVersion: tls.VersionTLS12,
53+
NextProtos: []string{"h2", "http/1.1"},
5254
}
5355
mServer = mhttps.NewServer(server.TLSConfig(tlsConfig))
5456
} else {

0 commit comments

Comments
 (0)