Update to latest betas

This commit is contained in:
asonix 2021-04-17 12:03:22 -05:00
parent 0478d08a97
commit 7a76f3f58c
3 changed files with 11 additions and 11 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "http-signature-normalization-actix"
description = "An HTTP Signatures library that leaves the signing to you"
version = "0.5.0-beta.4"
version = "0.5.0-beta.5"
authors = ["asonix <asonix@asonix.dog>"]
license-file = "LICENSE"
readme = "README.md"
@ -25,8 +25,8 @@ name = "client"
required-features = ["sha-2"]
[dependencies]
actix-web = { version = "4.0.0-beta.4", default-features = false }
awc = "3.0.0-beta.3"
actix-web = { version = "4.0.0-beta.6", default-features = false }
awc = "3.0.0-beta.5"
base64 = { version = "0.13", optional = true }
chrono = "0.4.6"
futures = "0.3"

View file

@ -2,10 +2,10 @@
use super::{DigestPart, DigestVerify};
use actix_web::{
dev::{MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
dev::{Body, MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
error::PayloadError,
http::{header::HeaderValue, StatusCode},
web, FromRequest, HttpMessage, HttpRequest, HttpResponse, ResponseError,
web, BaseHttpResponse, FromRequest, HttpMessage, HttpRequest, ResponseError,
};
use futures::{channel::mpsc, Stream, StreamExt};
use log::{debug, warn};
@ -211,7 +211,7 @@ impl ResponseError for VerifyError {
StatusCode::BAD_REQUEST
}
fn error_response(&self) -> HttpResponse {
HttpResponse::BadRequest().finish()
fn error_response(&self) -> BaseHttpResponse<Body> {
BaseHttpResponse::bad_request()
}
}

View file

@ -2,9 +2,9 @@
use crate::{Config, PrepareVerifyError, SignatureVerify};
use actix_web::{
dev::{MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
dev::{Body, MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
http::StatusCode,
Error, FromRequest, HttpMessage, HttpRequest, HttpResponse, ResponseError,
BaseHttpResponse, Error, FromRequest, HttpMessage, HttpRequest, ResponseError,
};
use log::{debug, warn};
use std::{
@ -252,7 +252,7 @@ impl ResponseError for VerifyError {
StatusCode::BAD_REQUEST
}
fn error_response(&self) -> HttpResponse {
HttpResponse::BadRequest().finish()
fn error_response(&self) -> BaseHttpResponse<Body> {
BaseHttpResponse::bad_request()
}
}