Merge pull request #12 from hahahannes/nested_endpoints

fixed problem with nested endpoints
This commit is contained in:
Giacomo Tanganelli 2018-12-12 13:55:55 +01:00 committed by GitHub
commit 985763bfe2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,8 +273,6 @@ class CoAP(object):
except KeyError:
res = None
if res is None:
if len(paths) != i:
return False
resource.path = actual_path
self.root[actual_path] = resource
return True