| ... | @@ -170,6 +170,9 @@ fn crash_reports_are_kept_small_and_few_and_never_echoed() { | ... | @@ -170,6 +170,9 @@ fn crash_reports_are_kept_small_and_few_and_never_echoed() { |
| 170 | b"POST /crash HTTP/1.1\r\nContent-Type: text/plain\r\nContent-Length: 2\r\n\r\n\xff\xfe", | 170 | b"POST /crash HTTP/1.1\r\nContent-Type: text/plain\r\nContent-Length: 2\r\n\r\n\xff\xfe", |
| 171 | ); | 171 | ); |
| 172 | assert!(invalid.starts_with("HTTP/1.1 400"), "{invalid}"); | 172 | assert!(invalid.starts_with("HTTP/1.1 400"), "{invalid}"); |
| | 173 | let empty = |
| | 174 | site.send(b"POST /crash HTTP/1.1\r\nContent-Type: text/plain\r\nContent-Length: 0\r\n\r\n"); |
| | 175 | assert!(empty.starts_with("HTTP/1.1 400"), "{empty}"); |
| 173 | | 176 | |
| 174 | // One sender is held to a few an hour; another, by the proxy's word, still gets in. | 177 | // One sender is held to a few an hour; another, by the proxy's word, still gets in. |
| 175 | let sent = (0..relay::site::PER_ADDRESS) | 178 | let sent = (0..relay::site::PER_ADDRESS) |