change error to code
This commit is contained in:
parent
8ba90995ae
commit
e9b872c4cf
2
http.go
2
http.go
@ -162,7 +162,7 @@ func (h *httpHandler) handleRequest(conn net.Conn, req *http.Request) {
|
||||
// probing resistance is enabled
|
||||
if ss := strings.SplitN(h.options.ProbeResist, ":", 2); len(ss) == 2 {
|
||||
switch ss[0] {
|
||||
case "error":
|
||||
case "code":
|
||||
resp.StatusCode, _ = strconv.Atoi(ss[1])
|
||||
case "web":
|
||||
url := ss[1]
|
||||
|
2
http2.go
2
http2.go
@ -327,7 +327,7 @@ func (h *http2Handler) roundTrip(w http.ResponseWriter, r *http.Request) {
|
||||
// probing resistance is enabled
|
||||
if ss := strings.SplitN(h.options.ProbeResist, ":", 2); len(ss) == 2 {
|
||||
switch ss[0] {
|
||||
case "error":
|
||||
case "code":
|
||||
resp.StatusCode, _ = strconv.Atoi(ss[1])
|
||||
case "web":
|
||||
url := ss[1]
|
||||
|
Loading…
Reference in New Issue
Block a user