   process: (callback) ->
     # TODO: take encoding into account
     # TODO: check content-length against actual length
-    @buffer = Buffer.concat @chunks, @length
+    if Buffer?
+      @buffer = Buffer.concat @chunks, @length
+    else
+      @buffer = @chunks.join("")
+
     @process_encoding =>
       @process_type callback
 

      method: @method
      headers: @headers

    if @body
      @headers["Content-Length"] = Buffer.byteLength(@body)

    raw = client.request parameters, (response) =>

  string.toLowerCase()
    .replace("_", "-")
    .replace /(^|-)(\w)/g, (s) -> s.toUpperCase()

module.exports = class Request

