Skip to content

Commit

Permalink
fix osm 418 teapot error
Browse files Browse the repository at this point in the history
  • Loading branch information
domlysz committed Apr 28, 2020
1 parent 3522605 commit 2db5a52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/basemaps/mapservice.py
Expand Up @@ -396,8 +396,8 @@ class Layer(): pass
'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' ,
'Accept-Encoding' : 'gzip,deflate' ,
'Accept-Language' : 'fr,en-us,en;q=0.5' ,
'Keep-Alive': 115 ,
'Proxy-Connection' : 'keep-alive' ,
#'Keep-Alive': 115 ,
'Proxy-Connection' : 'keep-alive',
'User-Agent' : USER_AGENT,
'Referer' : self.referer}

Expand Down
4 changes: 2 additions & 2 deletions core/basemaps/servicesDefs.py
Expand Up @@ -163,8 +163,8 @@
"layers" : {
"MAPNIK" : {"urlKey" : '', "name" : 'Mapnik', "description" : '', "format" : 'png', "zmin" : 0, "zmax" : 19}
},
"urlTemplate": "http://tile.openstreetmap.org/{Z}/{X}/{Y}.png",
"referer": "https://www.openstreetmap.org"
"urlTemplate": "https://tile.openstreetmap.org/{Z}/{X}/{Y}.png",
"referer": "" #https://www.openstreetmap.org will return 418 error
},


Expand Down

0 comments on commit 2db5a52

Please sign in to comment.