 
 	headers = null
 	statusCode = null
+	error = null
 	chunks = []
 	chunksTotalLength = 0
 

			statusCode: statusCode
		}

	stream.on 'error', (error) ->
		callback null, {
			error: error
			parsedUrl: parsedUrl
		}

OEmbed.getUrlMeta = (url, withFragment) ->
	getUrlContentSync = Meteor.wrapAsync getUrlContent

			stream.abort()

	stream.on 'end', Meteor.bindEnvironment ->
		if error?
			return callback null, {
				error: error
				parsedUrl: parsedUrl
			}

		buffer = Buffer.concat(chunks)

		callback null, {
