FTP clients that expect an FTP 150 (OK to send data) response from the FTP
server before actually uploading content.
If an adaptation service starts waiting for the PUT request body before
starting to produce an adaptation response (allowing the transaction to reach
the FTP server), the FTP transaction will get stuck. It is not clear why this
has not been a [known] issue with real HTTP requests containing
Expect:100-continue.
request->header.putStr(HDR_FTP_COMMAND, cmd.termedBuf());
request->header.putStr(HDR_FTP_ARGUMENTS, params.termedBuf() != NULL ?
params.termedBuf() : "");
- if (*method_p == Http::METHOD_PUT)
+ if (*method_p == Http::METHOD_PUT) {
+ request->header.putStr(HDR_EXPECT, "100-continue");
request->header.putStr(HDR_TRANSFER_ENCODING, "chunked");
+ }
ClientHttpRequest *const http = new ClientHttpRequest(connState);
http->request = request;