Merge branch 'master' into fix-client-ip-cve

This commit is contained in:
Manu MA 2021-02-09 16:04:32 +01:00 committed by GitHub
commit ba157c990a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ import (
)
// StringToBytes converts string to byte slice without a memory allocation.
func StringToBytes(s string) (b []byte) {
func StringToBytes(s string) []byte {
return *(*[]byte)(unsafe.Pointer(
&struct {
string