File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ func (c *clientHandler) handleTYPE(param string) error {
262262 case "I" , "L8" :
263263 c .currentTransferType = TransferTypeBinary
264264 c .writeMessage (StatusOK , "Type set to binary" )
265- case "A" , "L7" :
265+ case "A" , "AN" , " L7" :
266266 c .currentTransferType = TransferTypeASCII
267267 c .writeMessage (StatusOK , "Type set to ASCII" )
268268 default :
Original file line number Diff line number Diff line change @@ -297,6 +297,10 @@ func TestTYPE(t *testing.T) {
297297 require .NoError (t , err )
298298 require .Equal (t , StatusOK , rc )
299299
300+ rc , _ , err = raw .SendCommand ("TYPE A N" )
301+ require .NoError (t , err )
302+ require .Equal (t , StatusOK , rc )
303+
300304 rc , _ , err = raw .SendCommand ("TYPE i" )
301305 require .NoError (t , err )
302306 require .Equal (t , StatusOK , rc )
You can’t perform that action at this time.
0 commit comments