@@ -404,9 +404,10 @@ arc_genamshdr(ARC_MESSAGE *msg,
404
404
arc_dstring_printf (dstr , ";%scv=%s" , delim ,
405
405
arc_code_to_name (chainstatus , msg -> arc_cstate ));
406
406
}
407
- else
407
+ else if (msg -> arc_canonhdr != ARC_CANON_SIMPLE ||
408
+ msg -> arc_canonbody != ARC_CANON_SIMPLE )
408
409
{
409
- /* c= */
410
+ /* Add c= for the AMS if it's not the RFC default simple/simple */
410
411
arc_dstring_printf (
411
412
dstr , ";%sc=%s/%s" , delim ,
412
413
arc_code_to_name (canonicalizations , msg -> arc_canonhdr ),
@@ -1686,8 +1687,7 @@ arc_process_set(ARC_MESSAGE *msg,
1686
1687
arc_param_get (set , "d" ) == NULL ||
1687
1688
arc_param_get (set , "b" ) == NULL ||
1688
1689
arc_param_get (set , "bh" ) == NULL ||
1689
- arc_param_get (set , "i" ) == NULL ||
1690
- arc_param_get (set , "c" ) == NULL || arc_param_get (set , "a" ) == NULL )
1690
+ arc_param_get (set , "i" ) == NULL || arc_param_get (set , "a" ) == NULL )
1691
1691
{
1692
1692
arc_error (msg , "missing parameter(s) in %s data" , settype );
1693
1693
set -> set_bad = true;
0 commit comments