Only retry idempotent requests. (#80)

This also reverts a change to send_body that was originally added to
return the number of bytes written. It's no longer needed now that we
check the size of the reader in advance.

Fixes #76.
This commit is contained in:
Jacob Hoffman-Andrews authored and GitHub committed 2020-06-22 09:40:55 -07:00
1 parent 15be014e05
commit 00461fb5bd
4 files changed
+38 -15

No files matched your search

-2
View File
@@ -1,5 +1,3 @@
use crate::test;
use std::io::{self, BufRead, BufReader, Read, Write};
use std::net::TcpStream;
use std::thread;