A connector, comprising: a first housing including a pair of detection terminals; a second housing connectable to the first housing; a resilient deforming portion formed in or on the second housing and configured to be resiliently deformed in the process of connecting the first and second housings (10, 20) and to be resiliently at least partly restored when the first and second housings (10, 20) are properly connected; a detection unit provided in or at the second housing for detecting whether or not the two housings (10, 20) are properly connected based on whether or not the pair of detection terminals is shorted, wherein the detection unit includes a pair of intermediate terminals each including a connecting portion which are electrically conductively connected to the pair of detection terminals in the process of connecting the two housings (10, 20) and when the first and second housings (10, 20) are properly connected and a first detection contact portion, and a shorting terminal, wherein the shorting terminal includes a pair of resilient arm portions having each a second detection contact portion, wherein the resilient arm portions are resiliently displaced as the resilient deforming portion is deformed so that the second detection contact portions are separated from the first detection contact portions, wherein the pair of connecting portions is released from a shorted state as the resilient deforming portion is resiliently deformed, and the pair of connecting portions is in the shorted state as the resilient deforming portion is resiliently at least partly restored; and at least one catch preventing means for preventing a foreign matter from being caught at the detection contact portions (45; 50) in a state where the first and second housings (10, 20) are separated. a first housing including a pair of detection terminals; a second housing connectable to the first housing; a resilient deforming portion formed in or on the second housing and configured to be resiliently deformed in the process of connecting the first and second housings (10, 20) and to be resiliently at least partly restored when the first and second housings (10, 20) are properly connected; a detection unit provided in or at the second housing for detecting whether or not the two housings (10, 20) are properly connected based on whether or not the pair of detection terminals is shorted, wherein the detection unit includes a pair of intermediate terminals each including a connecting portion which are electrically conductively connected to the pair of detection terminals in the process of connecting the two housings (10, 20) and when the first and second housings (10, 20) are properly connected and a first detection contact portion, and a shorting terminal, wherein the shorting terminal includes a pair of resilient arm portions having each a second detection contact portion, wherein the resilient arm portions are resiliently displaced as the resilient deforming portion is deformed so that the second detection contact portions are separated from the first detection contact portions, wherein the pair of connecting portions is released from a shorted state as the resilient deforming portion is resiliently deformed, and the pair of connecting portions is in the shorted state as the resilient deforming portion is resiliently at least partly restored; and at least one catch preventing means for preventing a foreign matter from being caught at the detection contact portions (45; 50) in a state where the first and second housings (10, 20) are separated.