summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-24 12:13:38 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-24 12:13:38 +0200
commit21d395593e04a0229173bda1bade1a214704d1a3 (patch)
treefbd417284b2666dcfd4e894b3240e7cba464ee30
parentd00bcc74a4894db2c6290da3093120b2a1df3cb7 (diff)
pharo: Allow converting the authorization message as well
We need >>#do: as nextPutAllOn: is not called/doesn't exist in this dialect.
-rw-r--r--callagent/authorization/SIPAuthorization.st4
1 files changed, 4 insertions, 0 deletions
diff --git a/callagent/authorization/SIPAuthorization.st b/callagent/authorization/SIPAuthorization.st
index b40a4eb..64bcd63 100644
--- a/callagent/authorization/SIPAuthorization.st
+++ b/callagent/authorization/SIPAuthorization.st
@@ -103,6 +103,10 @@ Object subclass: SIPAuthorization [
url: uri.
]
+ do: aBlock [
+ (String streamContents: [:str | self nextPutAllOn: str]) do: aBlock
+ ]
+
nextPutAllOn: aStream [
aStream
nextPutAll: 'Digest username="';