parent
6789dbc6a9
commit
1bd31a9e1d
2 changed files with 5 additions and 4 deletions
6
main.go
6
main.go
|
@ -26,9 +26,9 @@ func main() {
|
||||||
// Panics on failure.
|
// Panics on failure.
|
||||||
//
|
//
|
||||||
// Logger is built from zap's production logging configuration with:
|
// Logger is built from zap's production logging configuration with:
|
||||||
// * parameterized level (debug by default)
|
// - parameterized level (debug by default)
|
||||||
// * console encoding
|
// - console encoding
|
||||||
// * ISO8601 time encoding
|
// - ISO8601 time encoding
|
||||||
//
|
//
|
||||||
// Logger records a stack trace for all messages at or above fatal level.
|
// Logger records a stack trace for all messages at or above fatal level.
|
||||||
//
|
//
|
||||||
|
|
|
@ -413,6 +413,7 @@ func (r *Reader) isBoundaryDelimiterLine(line []byte) (ret bool) {
|
||||||
|
|
||||||
// skipLWSPChar returns b with leading spaces and tabs removed.
|
// skipLWSPChar returns b with leading spaces and tabs removed.
|
||||||
// RFC 822 defines:
|
// RFC 822 defines:
|
||||||
|
//
|
||||||
// LWSP-char = SPACE / HTAB
|
// LWSP-char = SPACE / HTAB
|
||||||
func skipLWSPChar(b []byte) []byte {
|
func skipLWSPChar(b []byte) []byte {
|
||||||
for len(b) > 0 && (b[0] == ' ' || b[0] == '\t') {
|
for len(b) > 0 && (b[0] == ' ' || b[0] == '\t') {
|
||||||
|
|
Loading…
Reference in a new issue