Skip to content

Commit

Permalink
修复请求中command为小写时,不兼容的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yangziwen committed Jul 10, 2021
1 parent fc768b4 commit fa21e05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>io.github.yangziwen</groupId>
<artifactId>zy-ftp</artifactId>
<version>0.0.1</version>
<version>0.0.2-SNAPSHOT</version>
<packaging>jar</packaging>

<name>zy-ftp</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public FtpRequest(FtpSession session) {
}

public FtpRequest(String command, String argument) {
this.command = command;
this.command = command.toUpperCase();
this.argument = argument;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class PassivePorts {
public PassivePorts(Set<Integer> passivePorts) {
if (passivePorts == null) {
throw new NullPointerException("passivePorts can not be null");
} else if(passivePorts.isEmpty()) {
} else if (passivePorts.isEmpty()) {
passivePorts = new HashSet<Integer>();
passivePorts.add(0);
}
Expand Down

0 comments on commit fa21e05

Please sign in to comment.