Skip to content

Commit bb5d37f

Browse files
authored
Merge pull request #2 from macuenca/fix-error-message
Return empty message response on an empty body
2 parents b8ce587 + cacbc69 commit bb5d37f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

injectionapi/sendvalidator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (sendValidator) ValidateBasicMessage(basicMessage message.BasicMessage) (re
4040
response.Result = SendResultEMAILADDRESSVALIDATIONINVALIDFROM
4141

4242
} else if !isValidBasicMessage(basicMessage) {
43-
response.Result = SendResultRECIPIENTVALIDATIONINVALIDREPLYTO
43+
response.Result = SendResultEMPTYMESSAGE
4444

4545
} else if !isValidBasicMessageCustomHeaders(basicMessage) {
4646
response.Result = SendResultMESSAGEVALIDATIONINVALIDCUSTOMHEADERS

0 commit comments

Comments
 (0)