text/x-patch
Differences between files
| Description | Differences between files |
|---|---|
| File extensions | .diff, .patch |
| Aliases | text/x-diff |
| Based on | text/plain |
| Signature (magic bytes) | 2A 2A 2A 09 (***.)2A 2A 2A 20 (*** )2D 2D 2D 20 (--- ) |
Frequently asked questions
What is the MIME type text/x-patch?
text/x-patch denotes “Differences between files”.
Which file extension does text/x-patch use?
Files of type text/x-patch usually end in .diff and .patch.
How does a web server serve text/x-patch correctly?
With the header Content-Type: text/x-patch. In nginx: types { text/x-patch diff patch; }; in Apache: AddType text/x-patch .diff .patch.
Are there other names for text/x-patch?
Yes, text/x-diff are used as equivalents.