We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14cdefa commit 6715922Copy full SHA for 6715922
spyne/server/wsgi.py
@@ -312,12 +312,14 @@ def is_wsdl_request(self, req_env):
312
return (
313
req_env['REQUEST_METHOD'].upper() == 'GET'
314
and (
315
- req_env['QUERY_STRING'].split('=')[0].lower() == 'wsdl'
+ (
316
+ 'QUERY_STRING' in req_env
317
+ and req_env['QUERY_STRING'].split('=')[0].lower() == 'wsdl'
318
+ )
319
or req_env['PATH_INFO'].endswith('.wsdl')
320
)
321
322
-
323
def handle_wsdl_request(self, req_env, start_response, url):
324
ctx = WsgiMethodContext(self, req_env, 'text/xml; charset=utf-8')
325
0 commit comments