replace some runtime repr in stdlib for gc:arc (#12716)

This commit is contained in:
Andy Davidoff 2019-11-25 04:13:30 -05:00 • committed by Andreas Rumpf
commit bd8f49cbd3
3 changed files with 5 additions and 4 deletions

View file

@ -747,7 +747,7 @@ proc parseResponse(client: HttpClient | AsyncHttpClient,
# Parse HTTP version info and status code.
var le = skipIgnoreCase(line, "HTTP/", linei)
if le <= 0:
httpError("invalid http version, " & line.repr)
httpError("invalid http version, `" & line & "`")
inc(linei, le)
le = skipIgnoreCase(line, "1.1", linei)
if le > 0: result.version = "1.1"