Skip to content

Commit

Permalink
fix xml import mechanism for encoding header
Browse files Browse the repository at this point in the history
  • Loading branch information
the-infinity committed Dec 13, 2023
1 parent 6f3d58f commit b1832a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def handle_json_data(self, source_uid: str, data: dict | list) -> 'ImportSourceR

return import_results

def handle_xml_data(self, source_uid: str, data: str) -> 'ImportSourceResult':
def handle_xml_data(self, source_uid: str, data: bytes) -> 'ImportSourceResult':
source = self._get_source(source_uid)
import_service = self.parking_site_generic_import_service.push_converters[source_uid]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class GenericParkingSitesXmlMethodView(GenericParkingSitesMethodView):
def post(self):
result = self.generic_parking_sites_handler.handle_xml_data(
source_uid=self.request_helper.get_basicauth_username(),
data=self.request_helper.get_request_body_text(),
data=self.request_helper.get_request_body(),
)

return jsonify(self._generate_response(result))
Expand Down
2 changes: 1 addition & 1 deletion webapp/converter

0 comments on commit b1832a0

Please sign in to comment.