CA-242397: Fix format exception caused by incorrect  chunk reading (#88)
CA-242397: Fix format exception caused by incorrect  chunk reading (#88)

Improved the ReadHttpHeaders function, by making sure that a chunk is read fully from the stream (the number of bytes read by the Stream.Read function can be less than the number of bytes requested, so we need to continue reading until the required number of bytes is read)

Signed-off-by: Mihaela Stoica <be95049f8e30d921fc7e2579c00c48bd84c40606@citrix.com>
xapi-project/xen-api-sdk,stephen-turner/xen-api-sdk,stephen-turner/xen-api-sdk,xapi-project/xen-api-sdk,kc284/xen-api-sdk,stephen-turner/xen-api-sdk,xapi-project/xen-api-sdk,kc284/xen-api-sdk,kc284/xen-api-sdk,stephen-turner/xen-api-sdk,xapi-project/xen-api-sdk,xapi-project/xen-api-sdk,kc284/xen-api-sdk,kc284/xen-api-sdk,xapi-project/xen-api-sdk,stephen-turner/xen-api-sdk,stephen-turner/xen-api-sdk,kc284/xen-api-sdk