         headers = reasonPhrase
       headers or= res.headers
 
-      contentType = headers?['Content-Type']?.split(';')[0]
+      contentType = headers?[getHeaderName headers, 'content-type']?.split(';')[0]
 
       if handlers[contentType]
         # Divert the content stream for further processing

        else
          handler
  handlers

exports.create = (options) ->
  # Short circuit if no plugins were provided

            res.write = write
            res.end = end

            headers[getHeaderName headers, 'content-length'] = content.length

            # Send everything on the way
            res.writeHead statusCode, headers
