It should be an error because browsers will not parse the body if the two values do not match. I do not know how a browser would be if there are multiple requests in a session and the first one has mismatched content lengths.