In a heat exchanger having a casing in which a joint of the casing and between a core and the casing are brazed and fixed without a gap, the section of a portion in contact with the casing body is formed at a right angle at both ends of an upper edge portion of a header plate, and an upper lid is fitted so that it is brought into contact with the upper edge of the header plate over the entire length.