From f8e04f96df65616fff89e7faac707f999176d18b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 13 Nov 2018 03:14:03 +0100 Subject: license: Generate a license and send it in HTTP response If the purchaser coming from POST params is found in the database, generate a license for the purchaser, zip the license, and send a response containing the zipped data. zip: Change the writer input to a mutable reference to enable us to use the zip data when writing to the response. Otherwise we get a borrow error. --- license-generator/src/errors.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'license-generator/src/errors.rs') diff --git a/license-generator/src/errors.rs b/license-generator/src/errors.rs index c7aadc6..352f959 100644 --- a/license-generator/src/errors.rs +++ b/license-generator/src/errors.rs @@ -7,6 +7,7 @@ error_chain! { foreign_links { EnvVar(::std::env::VarError); Io(::std::io::Error); + Utf8(::std::string::FromUtf8Error); Log(log::SetLoggerError); MySql(mysql::error::Error); -- cgit v1.2.3