Milter DATA command sent before headers
This commit is contained in:
@@ -217,6 +217,9 @@ impl<T: AsyncWrite + AsyncRead + IsTls + Unpin> Session<T> {
|
||||
.assert_continue()?;
|
||||
}
|
||||
|
||||
// Data
|
||||
client.data().await?.assert_continue()?;
|
||||
|
||||
// Headers
|
||||
client
|
||||
.headers(message.raw_parsed_headers().iter().map(|(k, v)| {
|
||||
@@ -228,9 +231,6 @@ impl<T: AsyncWrite + AsyncRead + IsTls + Unpin> Session<T> {
|
||||
.await?
|
||||
.assert_continue()?;
|
||||
|
||||
// Data
|
||||
client.data().await?.assert_continue()?;
|
||||
|
||||
// Message body
|
||||
let (action, modifications) = client.body(message.raw_message()).await?;
|
||||
action.assert_continue()?;
|
||||
|
||||
@@ -74,6 +74,7 @@ async fn milter_session() {
|
||||
hostname = "127.0.0.1"
|
||||
port = 9332
|
||||
#port = 11332
|
||||
#port = 7357
|
||||
enable = true
|
||||
options.version = 6
|
||||
tls = false
|
||||
|
||||
Reference in New Issue
Block a user