Skip to content

Commit

Permalink
Compact lower case args in OPTS command
Browse files Browse the repository at this point in the history
For windows suck.

Signed-off-by: Jingwen Peng <[email protected]>
  • Loading branch information
pengsrc committed Apr 26, 2017
1 parent 92c2726 commit dcaf306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (c *Handler) handleSTATServer() {

func (c *Handler) handleOPTS() {
args := strings.SplitN(c.param, " ", 2)
if args[0] == "UTF8" {
if strings.ToUpper(args[0]) == "UTF8" {
c.WriteMessage(200, "I'm in UTF8 only anyway")
} else {
c.WriteMessage(500, "Don't know this option")
Expand Down

0 comments on commit dcaf306

Please sign in to comment.