mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-21 17:00:59 +00:00
Update to latest betas
This commit is contained in:
parent
0478d08a97
commit
7a76f3f58c
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.4"
|
version = "0.5.0-beta.5"
|
||||||
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.4", default-features = false }
|
actix-web = { version = "4.0.0-beta.6", default-features = false }
|
||||||
awc = "3.0.0-beta.3"
|
awc = "3.0.0-beta.5"
|
||||||
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::{MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
|
dev::{Body, MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
|
||||||
error::PayloadError,
|
error::PayloadError,
|
||||||
http::{header::HeaderValue, StatusCode},
|
http::{header::HeaderValue, StatusCode},
|
||||||
web, FromRequest, HttpMessage, HttpRequest, HttpResponse, ResponseError,
|
web, BaseHttpResponse, FromRequest, HttpMessage, HttpRequest, 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) -> HttpResponse {
|
fn error_response(&self) -> BaseHttpResponse<Body> {
|
||||||
HttpResponse::BadRequest().finish()
|
BaseHttpResponse::bad_request()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
use crate::{Config, PrepareVerifyError, SignatureVerify};
|
use crate::{Config, PrepareVerifyError, SignatureVerify};
|
||||||
use actix_web::{
|
use actix_web::{
|
||||||
dev::{MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
|
dev::{Body, MessageBody, Payload, Service, ServiceRequest, ServiceResponse, Transform},
|
||||||
http::StatusCode,
|
http::StatusCode,
|
||||||
Error, FromRequest, HttpMessage, HttpRequest, HttpResponse, ResponseError,
|
BaseHttpResponse, Error, FromRequest, HttpMessage, HttpRequest, 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) -> HttpResponse {
|
fn error_response(&self) -> BaseHttpResponse<Body> {
|
||||||
HttpResponse::BadRequest().finish()
|
BaseHttpResponse::bad_request()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue