         path = parsed.path
         proto = parsed.proto
         headers = parsed.headers
-        body = parsed.buffer.map { c in
-            return UInt8(c)
-        }
+        body = parsed.buffer
+        body.append(0)
     }
 
 }

    public let path: String
    public let proto: String
    public let headers: [String: String]
    public let body: [UInt8]

    init(bytes: [CChar]) {
        let parsed = HTTPRequestParser(raw: bytes)

    var path: String
    var proto: String
    var headers: [String: String]
    var body: [CChar]

    class State {
        var mode = Mode.First
