Georg Huettenegger added code to deal with error 417 when doing form posts.
NOTE: we might do this for *ALL* errors when doing form posts.
This commit is contained in:
parent
3c52c53ddd
commit
9835629801
@ -434,6 +434,18 @@ Transfer(struct connectdata *c_conn)
|
|||||||
else
|
else
|
||||||
header = FALSE; /* no more header to parse! */
|
header = FALSE; /* no more header to parse! */
|
||||||
|
|
||||||
|
if (417 == httpcode) {
|
||||||
|
/*
|
||||||
|
* we got: "417 Expectation Failed" this means:
|
||||||
|
* we have made a HTTP call and our Expect Header
|
||||||
|
* seems to cause a problem => abort the write operations
|
||||||
|
* (or prevent them from starting
|
||||||
|
*/
|
||||||
|
write_after_100_header = FALSE;
|
||||||
|
keepon &= ~KEEP_WRITE;
|
||||||
|
FD_ZERO(&wkeepfd);
|
||||||
|
}
|
||||||
|
|
||||||
/* now, only output this if the header AND body are requested:
|
/* now, only output this if the header AND body are requested:
|
||||||
*/
|
*/
|
||||||
writetype = CLIENTWRITE_HEADER;
|
writetype = CLIENTWRITE_HEADER;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user