Opened 10 years ago

Closed 10 years ago

#3088 closed defect (fixed)

json mimetype is wrong

Reported by: dargo Owned by: openstreetmap@…
Priority: major Milestone:
Component: nominatim Version:
Keywords: Cc:

Description

The returned mimetype for json should be application/json, not text/x-json. Please see the discussion here: http://stackoverflow.com/questions/477816/the-right-json-content-type

Change History (3)

comment:1 Changed 10 years ago by osm@…

While you are at it, please also set the "Content-Type" HTTP header to include the encoding like so(if it's UTF-8): application/json;charset=UTF-8

comment:2 in reply to:  1 Changed 10 years ago by osm@…

The lack of encoding information also applies to the XML output of course!

comment:3 Changed 10 years ago by twain

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.