Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lambda-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ tokio-stream = "0.1.2"
lambda_runtime_api_client = { version = "0.8", path = "../lambda-runtime-api-client" }
serde_path_to_error = "0.1.11"
http-serde = "1.1.3"
base64 = "0.20.0"
base64 = "0.21.0"
http-body = "0.4"
3 changes: 2 additions & 1 deletion lambda-runtime/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crate::{Config, Error};
use base64::prelude::*;
use bytes::Bytes;
use http::{HeaderMap, HeaderValue, StatusCode};
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -208,7 +209,7 @@ impl ToStreamErrorTrailer for Error {
fn to_tailer(&self) -> String {
format!(
"Lambda-Runtime-Function-Error-Type: Runtime.StreamError\r\nLambda-Runtime-Function-Error-Body: {}\r\n",
base64::encode(self.to_string())
BASE64_STANDARD.encode(self.to_string())
)
}
}
Expand Down