Skip to content

Commit c5d6349

Browse files
committed
Fix response content_type
1 parent a308b54 commit c5d6349

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,10 @@ def __process_request(self, args, service_name):
192192
get_identity_or_auth(info_service), origin, service_name, layers, params
193193
)
194194

195+
output_format = params.get('info_format', 'text/xml').lower()
195196
return Response(
196197
result,
197-
content_type='text/xml; charset=utf-8',
198+
content_type=output_format + '; charset=utf-8',
198199
status=200
199200
)
200201

0 commit comments

Comments
 (0)