     for header in includeHeaders
         message.push "#{header.toUpperCase()}: #{customHeaders[header] or defaultHeaders[header]}"
 
+    debug message.join ', '
     # add carriage returns and new lines as required by HTTP spec
-    debug message.join(', ')
     message.push '\r\n'
     new Buffer message.join '\r\n'
 

        location: makeDescriptionUrl httpServer
        server: makeServerString dev
        ext: ''
        usn: config.uuid + (if config.uuid in [ customHeaders.nt, customHeaders.st ] then '' else '::' + customHeaders.nt or customHeaders.st)

    # headers that are always used
    includeHeaders = [ 'cache-control', 'server', 'usn', 'location' ]
    # add passed headers to list of headers to include
    for key of customHeaders
        includeHeaders.push key

    # build message string
    message =

        socket.addMembership config.ssdp.address
    else
        address = config.ssdp.address
    socket.bind config.ssdp.port
    debug "Sending #{messages.length} messages from #{config.ssdp.port} to #{address}:#{port}"
    done = messages.length
    for msg in messages
