tileserver: fix possible typerror in contenttype header
This commit is contained in:
parent
66a6e3eee2
commit
e73e4bc4f2
1 changed files with 5 additions and 3 deletions
|
@ -188,9 +188,11 @@ class TileServer:
|
|||
self.tile_cache[tile_etag] = r.content
|
||||
return self.deliver_tile(start_response, tile_etag, r.content)
|
||||
|
||||
start_response('%d %s' % (r.status_code, r.reason), [self.date_header,
|
||||
('Content-Length', len(r.content)),
|
||||
('Content-Type', r.headers['Content-Type'])])
|
||||
start_response('%d %s' % (r.status_code, r.reason), [
|
||||
self.date_header,
|
||||
('Content-Length', len(r.content)),
|
||||
('Content-Type', r.headers.get('Content-Type', 'text/plain'))
|
||||
])
|
||||
return [r.content]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue