Does anyone know what the “correct” mime type for patch files is? I use application / octet-stream because I don't see anything better than iana.org . Is the application / octet stream working correctly, or is there something else that works best? Why is there no type "application / patch"?
Obviously, one of the possible answers is "text / plain", but I have seen many patch files that include data that is not purely text. Is text / plain the best choice if you know that all content is text, or is it better to be consistent across all patch files?
I have to say that the context that I am mostly thinking about sets the mime type as the key to subversive string-string processing (svn: mime-type and svn: eol-style). The problem is that the patch file can patch both files that use their own eol style, and also not native, which can lead to erasing the end of the line when applying the patch after checking.
Cameron brown
source share