diff --git a/src/spec.rs b/src/spec.rs index 3dff5187..4c797994 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -105,7 +105,7 @@ pub fn write_local_file_header(writer: &mut T, file: &ZipFile) -> IoR pub fn write_central_directory_header(writer: &mut T, file: &ZipFile) -> IoResult<()> { try!(writer.write_le_u32(CENTRAL_DIRECTORY_HEADER_SIGNATURE)); - try!(writer.write_le_u16(1337)); + try!(writer.write_le_u16(0x00FF)); try!(writer.write_le_u16(20)); let flag = if file.encrypted { 1 } else { 0 }; try!(writer.write_le_u16(flag));