1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-15 00:49:15 -04:00

refactor error messages

This commit is contained in:
Darien Raymond
2017-04-09 01:43:25 +02:00
parent 8175a751db
commit 35248497d2
141 changed files with 710 additions and 481 deletions

View File

@@ -1,9 +1,10 @@
package http
//go:generate go run $GOPATH/src/v2ray.com/core/tools/generrorgen/main.go -pkg http -path Transport,Internet,Headers,HTTP
import (
"bytes"
"context"
"errors"
"io"
"net"
"net/http"
@@ -24,7 +25,7 @@ const (
)
var (
ErrHeaderToLong = errors.New("Header too long.")
ErrHeaderToLong = newError("Header too long.")
writeCRLF = serial.WriteString(CRLF)
)