I'm trying to understand why a single HTTP response is split in 2 parts in the following setup:
- Requested resource is protected by HTTP Digest Authentication on server side.
- Communication is performed using TLS 1.0.
When client requests a resource then server response is split in 2 parts: first part (after decryption) contains only HTTP headers (besides other):
Content-Length: 1297and
WWW-Authenticate: ...Second part contains the body message.
The most important thing: this first part containing only headers is sent with PSH flag which causes that my application throws an exception because Content-Length is > 0 but there is no body message. The last packet of the second part does not have PSH flag.
Is this behaviour of server correct?