lib/curl: clean up CurlMailRequest::init
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 6 Mar 2014 20:06:07 +0000 (15:06 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 7 Mar 2014 20:06:01 +0000 (15:06 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/curl/curl.nit

index d3d3ca5..c39a038 100644 (file)
@@ -214,12 +214,11 @@ class CurlMailRequest
        var bcc: nullable Array[String] writable = null
        var subject: nullable String writable = ""
        var body: nullable String writable = ""
-       private var supported_outgoing_protocol: Array[String]
+       private var supported_outgoing_protocol: Array[String] = ["smtp", "smtps"]
 
        init (curl: nullable Curl)
        do
                self.curl = curl
-               self.supported_outgoing_protocol = once ["smtp", "smtps"]
        end
 
        # Helper method to add conventional space while building entire mail