From 73fd14a53f909a5d73d149fede773fc656fac25b Mon Sep 17 00:00:00 2001 From: SerHack <27734319+serhack@users.noreply.github.com> Date: Sat, 21 Aug 2021 10:35:38 +0200 Subject: [PATCH] Fixing #14 --- src/rest_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest_server.cpp b/src/rest_server.cpp index db25ab5..ea197f2 100644 --- a/src/rest_server.cpp +++ b/src/rest_server.cpp @@ -772,7 +772,7 @@ namespace lws response.m_response_code = 400; response.m_response_comment = "Bad Request"; } - else if (body == lws::error::account_not_found) + else if (body == lws::error::account_not_found || body == lws::error::duplicate_request) { response.m_response_code = 403; response.m_response_comment = "Forbidden";