Explorar o código

Copy Paste Error / Typo

Error Created in pasv() states EPSV rather than PASV
Dan Goldsmith %!s(int64=11) %!d(string=hai) anos
pai
achega
9a62d18b47
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ftp.go

+ 1 - 1
ftp.go

@@ -185,7 +185,7 @@ func (c *ServerConn) pasv() (port int, err error) {
 	start := strings.Index(line, "(")
 	end := strings.LastIndex(line, ")")
 	if start == -1 || end == -1 {
-		err = errors.New("Invalid EPSV response format")
+		err = errors.New("Invalid PASV response format")
 		return
 	}