Skip to content

Commit

Permalink
Correctly set response code BADVERS in Catalog
Browse files Browse the repository at this point in the history
Related to #1203
  • Loading branch information
jonasbb authored and bluejekyll committed Apr 10, 2022
1 parent 05f9642 commit a973039
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/server/src/authority/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ impl RequestHandler for Catalog {
req_edns.version()
);
response_header.set_response_code(ResponseCode::BADVERS);
resp_edns.set_rcode_high(ResponseCode::BADVERS.high());
response.edns(resp_edns);

// TODO: should ResponseHandle consume self?
Expand Down

0 comments on commit a973039

Please sign in to comment.