text/x-patch
差分文書
| 説明 | 差分文書 |
|---|---|
| 拡張子 | .diff, .patch |
| 別名 | text/x-diff |
| ベース形式 | text/plain |
| シグネチャ (マジックバイト) | 2A 2A 2A 09 (***.)2A 2A 2A 20 (*** )2D 2D 2D 20 (--- ) |
よくある質問
MIME タイプ text/x-patch とは?
text/x-patch は「差分文書」を表します。
text/x-patch の拡張子は?
text/x-patch のファイルは通常 .diff、.patch で終わります。
Web サーバーで text/x-patch を正しく配信するには?
ヘッダー Content-Type: text/x-patch を付けます。nginx では types { text/x-patch diff patch; }、Apache では AddType text/x-patch .diff .patch と設定します。
text/x-patch にはほかの名前がありますか?
はい、同じ意味で text/x-diff も使われます。