Skip to content

Commit 87a0874

Browse files
committed
why is this missing in CI? @dunglas
1 parent 98aadc4 commit 87a0874

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

caddy/br.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
package caddy
44

5-
// #include <brotli/encode.h>
6-
import "C"
7-
85
import (
9-
"fmt"
106
"runtime/debug"
117

128
"github.com/dunglas/frankenphp"
@@ -15,14 +11,6 @@ import (
1511
var brotli = true
1612

1713
func init() {
18-
brotliVer := C.BrotliEncoderVersion()
19-
if brotliVer != 0 {
20-
major := int(brotliVer >> 24)
21-
minor := int((brotliVer >> 12) & 0xfff)
22-
patch := int(brotliVer & 0xfff)
23-
frankenphp.AddPhpinfoEntry("libbrotli", fmt.Sprintf("%d.%d.%d", major, minor, patch))
24-
}
25-
2614
if buildInfo, ok := debug.ReadBuildInfo(); ok {
2715
for _, dep := range buildInfo.Deps {
2816
if dep.Path == "github.com/dunglas/caddy-cbrotli" {

0 commit comments

Comments
 (0)