Upgrade to ooni/probe-engine@v0.1.1 (#60)

This commit is contained in:
Simone Basso 2019-10-03 09:43:25 +02:00 committed by GitHub
commit f3865d2ec0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 103 additions and 35 deletions

View file

@ -1,8 +1,8 @@
package util
import (
"bytes"
"bufio"
"bytes"
"fmt"
"os"
"regexp"
@ -114,12 +114,11 @@ func WrapString(s string, lim uint) string {
return buf.String()
}
// ReadLine will read a single line from a bufio.Reader
func ReadLine(r *bufio.Reader) (string, error) {
var (
isPrefix bool
err error
err error
line, ln []byte
)
for isPrefix && err == nil {