Skip to content

Commit

Permalink
remove version from body request
Browse files Browse the repository at this point in the history
  • Loading branch information
petrus7 committed Jun 4, 2020
1 parent 13c95b3 commit 22d9a68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/geoserver/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def sld_body(self):

@property
def body(self):
resp = self.catalog.http_request(self._build_href('.{}'.format(self.style_format)))
# [:-2] remove version tag from type. GeoServer does not accept it
resp = self.catalog.http_request(self._build_href('.{}'.format(self.style_format[:-2])))
return resp.content

def update_body(self, body):
Expand Down

0 comments on commit 22d9a68

Please sign in to comment.