Comments (2)
To be complete some tests need to be added in test_check_format() for "browser Accept Header" where we initially ran into and was the reason for this issue. A typical browser Accept Header may look like:
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
A PR is a bit overkill to add lines in test_check_format() :
headers_['Accept'] = 'text/html,application/xhtml+xml,application/xml;q=0.9,'
assert check_format({}, headers_) == 'html'
headers_['accept'] = 'text/html,application/xhtml+xml,application/xml;q=0.9,'
assert check_format({}, headers_) == 'html'
from pygeoapi.
Thanks @justb4; added in 20c96a8
from pygeoapi.
Related Issues (20)
- Upgrade test suite to Python 3.9 HOT 2
- Breadcrumb routes for TMS endpoints are broken
- Incorrect behaviour for Tile Providers, using OpenLayers Client HOT 5
- Use Protocol interfaces and static duck typing design pattern HOT 1
- Restore PostGIS provider for Tiles HOT 2
- Delegate parsing of CQL to pygeofilter in a more unified way HOT 2
- Remove the need of a tiling scheme parameter from configuration options for OGC API - Tiles HOT 6
- Add context information when executing a process HOT 2
- breadcrumb exception on TileMatrixSets HOT 1
- Generate+display thumbnails/overviews for coverages HOT 2
- update collections type endpoint HTML
- downgrade to Pydantic 1
- add actions for CITE testing HOT 3
- Graceful failure for xarray provider HOT 5
- Modifications to CRS handling in xarray_.py provider HOT 4
- Processes - Unexpected returned value when response='document'
- implement RFC4 HOT 1
- Issue serving the same collection using both, a vector tile and a raster tile providers HOT 3
- TypeError: Object of type date is not JSON serializable : Admin API patch method HOT 5
- gzip compression not applied in starlette (invalid header handling) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygeoapi.