mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 18:37:41 +02:00
spelling check
This commit is contained in:
@ -63,7 +63,7 @@ header! {
|
||||
(AcceptCharset, http::ACCEPT_CHARSET) => (QualityItem<Charset>)+
|
||||
|
||||
test_accept_charset {
|
||||
/// Testcase from RFC
|
||||
/// Test case from RFC
|
||||
test_header!(test1, vec![b"iso-8859-5, unicode-1-1;q=0.8"]);
|
||||
}
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ header! {
|
||||
(Expires, http::EXPIRES) => [HttpDate]
|
||||
|
||||
test_expires {
|
||||
// Testcase from RFC
|
||||
// Test case from RFC
|
||||
test_header!(test1, vec![b"Thu, 01 Dec 1994 16:00:00 GMT"]);
|
||||
}
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ header! {
|
||||
(IfModifiedSince, http::IF_MODIFIED_SINCE) => [HttpDate]
|
||||
|
||||
test_if_modified_since {
|
||||
// Testcase from RFC
|
||||
// Test case from RFC
|
||||
test_header!(test1, vec![b"Sat, 29 Oct 1994 19:43:31 GMT"]);
|
||||
}
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ header! {
|
||||
(IfUnmodifiedSince, http::IF_UNMODIFIED_SINCE) => [HttpDate]
|
||||
|
||||
test_if_unmodified_since {
|
||||
// Testcase from RFC
|
||||
// Test case from RFC
|
||||
test_header!(test1, vec![b"Sat, 29 Oct 1994 19:43:31 GMT"]);
|
||||
}
|
||||
}
|
||||
|
@ -33,6 +33,6 @@ header! {
|
||||
(LastModified, http::LAST_MODIFIED) => [HttpDate]
|
||||
|
||||
test_last_modified {
|
||||
// Testcase from RFC
|
||||
// Test case from RFC
|
||||
test_header!(test1, vec![b"Sat, 29 Oct 1994 19:43:31 GMT"]);}
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ impl<'a> ConnectionInfo<'a> {
|
||||
///
|
||||
/// - Forwarded
|
||||
/// - X-Forwarded-For
|
||||
/// - peername of opened socket
|
||||
/// - peer name of opened socket
|
||||
#[inline]
|
||||
pub fn remote(&self) -> Option<&str> {
|
||||
if let Some(r) = self.remote {
|
||||
|
@ -103,8 +103,8 @@ pub enum ProtocolError {
|
||||
/// A payload reached size limit.
|
||||
#[fail(display="A payload reached size limit.")]
|
||||
Overflow,
|
||||
/// Continuation is not supproted
|
||||
#[fail(display="Continuation is not supproted.")]
|
||||
/// Continuation is not supported
|
||||
#[fail(display="Continuation is not supported.")]
|
||||
NoContinuation,
|
||||
/// Bad utf-8 encoding
|
||||
#[fail(display="Bad utf-8 encoding.")]
|
||||
|
Reference in New Issue
Block a user