Permalink
Browse files

formatting

  • Loading branch information...
1 parent 2be5141 commit 5518efcaddcffabb023c4ee250cc338ba31e82d4 @plq committed Aug 6, 2012
Showing with 3 additions and 4 deletions.
  1. +2 −2 spyne/protocol/msgpack/__init__.py
  2. +1 −2 spyne/server/twisted/__init__.py
@@ -101,10 +101,10 @@ def decompose_incoming_envelope(self, ctx, message):
msgtype, msgid, msgname, msgparams = ctx.in_document
if msgtype == MessagePackRpc.MSGPACK_REQUEST:
- assert message == DictObject.REQUEST
+ assert message == MessagePackRpc.REQUEST
elif msgtype == MessagePackRpc.MSGPACK_RESPONSE:
- assert message == DictObject.RESPONSE
+ assert message == MessagePackRpc.RESPONSE
elif msgtype == MessagePackRpc.MSGPACK_NOTIFY:
raise NotImplementedError()
@@ -53,8 +53,7 @@
def _reconstruct_url(request):
server_name = request.getRequestHostname()
server_port = request.getHost().port
- if (bool(request.isSecure()), server_port) not in [
- (True, 443), (False, 80)]:
+ if (bool(request.isSecure()), server_port) not in [(True, 443), (False, 80)]:
server_name = '%s:%d' % (server_name, server_port)
if request.isSecure():

0 comments on commit 5518efc

Please sign in to comment.