Skip to content

Commit

Permalink
renames header files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alliballibaba2 committed Jan 20, 2025
1 parent 91bf167 commit 3fdabc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cgi.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"unsafe"

"github.com/dunglas/frankenphp/internal/headers"
"github.com/dunglas/frankenphp/internal/phpheaders"
)

var knownServerKeys = []string{
Expand Down Expand Up @@ -169,7 +169,7 @@ func addHeadersToServer(request *http.Request, thread *phpThread, fc *FrankenPHP
}

// if the header name could not be cached, register it inefficiently
k := headers.GetUnCommonHeader(field)
k := phpheaders.GetUnCommonHeader(field)
v := strings.Join(val, ", ")
C.frankenphp_register_variable_safe(toUnsafeChar(k), toUnsafeChar(v), C.size_t(len(v)), trackVarsArray)
}
Expand Down Expand Up @@ -205,7 +205,7 @@ func getCachedHeaderKey(thread *phpThread, key string) *C.zend_string {
}

// try to cache cache the header as zend_string
commonKey := headers.GetCommonHeader(key)
commonKey := phpheaders.GetCommonHeader(key)
if commonKey == "" {
return nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package headers
package phpheaders

import (
"strings"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package headers
package phpheaders

import (
"testing"
Expand Down

0 comments on commit 3fdabc7

Please sign in to comment.