   end
 
   def post_receive_pack(conn, %{"repo" => repo, "user" => user}) do
-    {:ok, data, _rest} = read_body(conn)
+    data = read_long_body(conn)
 
     packet = GitPort.post_receive_pack(make_path(user, repo), data)
 

    |> send_resp 200, data
  end


end


  end

  def post_upload_pack(conn, %{"repo" => repo, "user" => user}) do
    data = read_long_body(conn)

    packet = GitPort.post_upload_pack(make_path(user, repo), data)

