Permalink
Browse files

fixed bug port 80

  • Loading branch information...
1 parent 1b80bda commit a2556625215bbaad0df020565b2e4f2d54e726b0 @rancavil committed Jan 1, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 tornadows/soaphandler.py
@@ -102,7 +102,9 @@ def get(self):
WSDL is generated dinamically.
"""
address = getattr(self, 'targetns_address',tornado.httpserver.socket.gethostbyname(tornado.httpserver.socket.gethostname()))
- port = self.request.headers['Host'].split(':')[1]
+ port = 80 # if you are using the port 80
+ if len(self.request.headers['Host'].split(':')) >= 2:
+ port = self.request.headers['Host'].split(':')[1]
wsdl_nameservice = self.request.uri.replace('/','').replace('?wsdl','').replace('?WSDL','')
wsdl_input = None
wsdl_output = None

0 comments on commit a255662

Please sign in to comment.