refindlyllc / rets

A thin RETS client
MIT License
69 stars 26 forks source link

session.py issue line 118 #120

Closed 0x3639 closed 7 years ago

0x3639 commented 7 years ago

In Chicago, the MRED MLS needs the full 'RETS-Version' name. So stripping 'RETS/' in line 118 of session.py throws a version error. MRED needs 'RETS/1.7.2' or 'RETS/1.5'.

self.version = str(parser.headers.get('RETS-Version')).strip('RETS/')

MRED requires the following:

self.version = str(parser.headers.get('RETS-Version'))

mcrowson commented 7 years ago

Fixed, thanks.