wavded / ogre

ogr2ogr geojson-focused web client
http://ogre.adc4gis.com
MIT License
266 stars 78 forks source link

Adding responseType parameter #31

Closed th00ber closed 9 years ago

th00ber commented 10 years ago

In POST parameter, if "responseType" is not set = standard "application/json" response. If it is set to "download" the response is "application/octet-stream" to force webbrowser to download the GeoJson (output file name is based on the input file name submitted)

wavded commented 9 years ago

Hmm.. interesting, so is this happening in certain browsers, or do people have extensions running? Why set the response type to be so generic (application/octet-stream) when you have content-disposition? Do you have a specific use case? Usually when I've wanted this specific functionally I'll just proxy my Ogre server and add on the content-disposition headers.

wavded commented 9 years ago

If discussion would still be had, please reopen. Code base has changed a bit so closing this pull regardless.