Small fix to prevent excessive exceptions

Oct 17, 2012 at 7:08 PM

In Server.cs, line ~676 change

            var bodyAsString = String.Empty;
            try
            {
                    bodyAsString = Encoding.UTF8.GetString(item.Body);
            }

to

            var bodyAsString = String.Empty;
            try
            {
                if (item.Body != null)
                {
                    bodyAsString = Encoding.UTF8.GetString(item.Body);
                }
            }

This will prevent the exception on all the requests that have no Body (GET usually doesn't).