From 94262e76103a2f69d3f66b4e92c0c0ebb3cd486b Mon Sep 17 00:00:00 2001 From: Andrea Falco Date: Fri, 23 Nov 2018 12:56:17 +0100 Subject: [PATCH] Changed GeoJSON and RDF media type (#186) * Updated GeoJSON media type Following https://tools.ietf.org/html/rfc7946#section-12 * Updated RDF media type Following https://tools.ietf.org/html/rfc3870#section-2 --- mime.types | 9 +++++++-- nginx.conf | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mime.types b/mime.types index 4506cf1..675eb6c 100644 --- a/mime.types +++ b/mime.types @@ -6,8 +6,13 @@ types { application/json json map topojson; application/ld+json jsonld; application/rss+xml rss; - application/vnd.geo+json geojson; - application/xml rdf xml; + # Normalize to standard type. + # https://tools.ietf.org/html/rfc7946#section-12 + application/geo+json geojson; + application/xml xml; + # Normalize to standard type. + # https://tools.ietf.org/html/rfc3870#section-2 + application/rdf+xml rdf; # JavaScript diff --git a/nginx.conf b/nginx.conf index 2611226..6cb4a25 100644 --- a/nginx.conf +++ b/nginx.conf @@ -124,12 +124,13 @@ http { application/ld+json application/manifest+json application/rss+xml - application/vnd.geo+json + application/geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml + application/rdf+xml font/collection font/opentype font/otf