mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-25 10:51:01 +00:00
Update to latest actix deps
This commit is contained in:
parent
7a76f3f58c
commit
dde7fb1485
3 changed files with 11 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "http-signature-normalization-actix"
|
name = "http-signature-normalization-actix"
|
||||||
description = "An HTTP Signatures library that leaves the signing to you"
|
description = "An HTTP Signatures library that leaves the signing to you"
|
||||||
version = "0.5.0-beta.5"
|
version = "0.5.0-beta.6"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
license-file = "LICENSE"
|
license-file = "LICENSE"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -25,8 +25,8 @@ name = "client"
|
||||||
required-features = ["sha-2"]
|
required-features = ["sha-2"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = { version = "4.0.0-beta.6", default-features = false }
|
actix-web = { version = "4.0.0-beta.7", default-features = false }
|
||||||
awc = "3.0.0-beta.5"
|
awc = "3.0.0-beta.6"
|
||||||
base64 = { version = "0.13", optional = true }
|
base64 = { version = "0.13", optional = true }
|
||||||
chrono = "0.4.6"
|
chrono = "0.4.6"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
use super::{DigestPart, DigestVerify};
|
use super::{DigestPart, DigestVerify};
|
||||||
use actix_web::{
|
use actix_web::{
|
||||||
dev::{Body, MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
|
dev::{MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
|
||||||
error::PayloadError,
|
error::PayloadError,
|
||||||
http::{header::HeaderValue, StatusCode},
|
http::{header::HeaderValue, StatusCode},
|
||||||
web, BaseHttpResponse, FromRequest, HttpMessage, HttpRequest, ResponseError,
|
web, FromRequest, HttpMessage, HttpRequest, HttpResponse, ResponseError,
|
||||||
};
|
};
|
||||||
use futures::{channel::mpsc, Stream, StreamExt};
|
use futures::{channel::mpsc, Stream, StreamExt};
|
||||||
use log::{debug, warn};
|
use log::{debug, warn};
|
||||||
|
@ -211,7 +211,7 @@ impl ResponseError for VerifyError {
|
||||||
StatusCode::BAD_REQUEST
|
StatusCode::BAD_REQUEST
|
||||||
}
|
}
|
||||||
|
|
||||||
fn error_response(&self) -> BaseHttpResponse<Body> {
|
fn error_response(&self) -> HttpResponse {
|
||||||
BaseHttpResponse::bad_request()
|
HttpResponse::new(self.status_code())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
use crate::{Config, PrepareVerifyError, SignatureVerify};
|
use crate::{Config, PrepareVerifyError, SignatureVerify};
|
||||||
use actix_web::{
|
use actix_web::{
|
||||||
dev::{Body, MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
|
dev::{MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
|
||||||
http::StatusCode,
|
http::StatusCode,
|
||||||
BaseHttpResponse, Error, FromRequest, HttpMessage, HttpRequest, ResponseError,
|
Error, FromRequest, HttpMessage, HttpRequest, HttpResponse, ResponseError,
|
||||||
};
|
};
|
||||||
use log::{debug, warn};
|
use log::{debug, warn};
|
||||||
use std::{
|
use std::{
|
||||||
|
@ -252,7 +252,7 @@ impl ResponseError for VerifyError {
|
||||||
StatusCode::BAD_REQUEST
|
StatusCode::BAD_REQUEST
|
||||||
}
|
}
|
||||||
|
|
||||||
fn error_response(&self) -> BaseHttpResponse<Body> {
|
fn error_response(&self) -> HttpResponse {
|
||||||
BaseHttpResponse::bad_request()
|
HttpResponse::new(self.status_code())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue