diff options
author | Jack Lloyd <[email protected]> | 2018-11-07 09:15:06 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-11-07 09:15:06 -0500 |
commit | 4e2f0e5d741e8b4471870e4e01817e152dd2be50 (patch) | |
tree | 5cd290b64859dfeaecda9c78c81ae9011c51ccb4 /src/cli/tls_http_server.cpp | |
parent | d7f0634af763484bca5ce1992d1c187a7e003e03 (diff) |
Avoid throwing std:: exceptions
Also include <new> in mem_ops.cpp as apparently that header is
where bad_alloc is defined.
Diffstat (limited to 'src/cli/tls_http_server.cpp')
-rw-r--r-- | src/cli/tls_http_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/tls_http_server.cpp b/src/cli/tls_http_server.cpp index 053f9e055..6b5cefab4 100644 --- a/src/cli/tls_http_server.cpp +++ b/src/cli/tls_http_server.cpp @@ -127,7 +127,7 @@ class HTTP_Parser headers[hdr_name] = hdr_val; if(headers.size() > 1024) - throw std::runtime_error("That's an awful lot of headers"); + throw Botan::Invalid_Argument("Too many HTTP headers sent in request"); } if(verb != "" && location != "") |