{"push_id":771637677,"size":1,"distinct_size":1,"ref":"refs/heads/fix/attachment-md5","head":"3d495b233f76fb87186b68fc0a6a3929dfe097ae","before":"17f46a6fb24c22c0ec7ed541fa55536c04426201","commits":[{"sha":"3d495b233f76fb87186b68fc0a6a3929dfe097ae","author":{"email":"35fc9c9e77f07a0f8c776cb4b60e0af7c9240a9f@gmail.com","name":"Thiago B. Negri"},"message":"Fix MD5 check on file uploads.\n\nUpload from file checking for header 'CONTENT_MD5', but all headers are\ncanonicalized by WP_REST_Request::canonicalize_header_name(), so this\nheader is never present.\n\nAlso, upload from file tries to handle the header as a string instead of\nas an array.\n\nSurprisingly, the test case for 'bad MD5 header' is incorrectly checking\nfor a 201 return, instead of a 412.\n\nThis commits fixes the MD5 check on upload from file by copying the way it\nis handled by upload from data, that correctly checks for 'content_md5'\nheader and use it as an array.","distinct":true,"url":"https://api.github.com/repos/thiago-negri/WP-API/commits/3d495b233f76fb87186b68fc0a6a3929dfe097ae"}]}