We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8de8353 commit 7320a3dCopy full SHA for 7320a3d
stream/source/unixgram/unixgram.go
@@ -40,7 +40,7 @@ func (src *UnixgramSource) decodeNginxLog(log []byte) int {
40
writeChar[0] = log[readIndex]
41
42
if len(log)-4 > readIndex &&
43
- log[readIndex] == '\\' && log[readIndex+1] == 'x' && (log[readIndex+2] == '2' || log[readIndex+2] == '5') {
+ log[readIndex] == '\\' && log[readIndex+1] == 'x' && ((log[readIndex+2] == '2' && log[readIndex+3] == '2') || (log[readIndex+2] == '5' && log[readIndex+3] == 'C')) {
44
hex.Decode(writeChar[:], log[readIndex+2:readIndex+4])
45
readIndex += 3
46
}
0 commit comments