소스 검색

fix typo in config retrieval

Daniel Gruno 5 년 전
부모
커밋
6f166339d7
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 0
      CHANGELOG.md
  2. 2 2
      pypubsub.py

+ 3 - 0
CHANGELOG.md

@@ -1,3 +1,6 @@
+# 0.4.4
+- Fixed a typo in the configuration retrieval for binary clients.
+
 # 0.4.3
 - Changed LDAP ACL structure to allow for multiple ACL definitions
   per LDAP group.

+ 2 - 2
pypubsub.py

@@ -29,7 +29,7 @@ import argparse
 import plugins.ldap
 
 # Some consts
-PUBSUB_VERSION = '0.4.3'
+PUBSUB_VERSION = '0.4.4'
 PUBSUB_BAD_REQUEST = "I could not understand your request, sorry! Please see https://pubsub.apache.org/api.html \
 for usage documentation.\n"
 PUBSUB_PAYLOAD_RECEIVED = "Payload received, thank you very much!\n"
@@ -166,7 +166,7 @@ class Subscriber:
 
         # Is the client old and expecting zero-terminators?
         self.old_school = False
-        for ua in self.server.config['clients'].get('oldscoolers', []):
+        for ua in self.server.config['clients'].get('oldschoolers', []):
             if ua in request.headers.get('User-Agent', ''):
                 self.old_school = True
                 break