rust upgrade

This commit is contained in:
Sean McArthur
2014-12-12 12:24:54 -08:00
parent 5e560cb1c1
commit 0bba6e80ee
12 changed files with 19 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
use std::fmt::{mod, Show};
use std::str::{FromStr, from_utf8};
use serialize::base64::{ToBase64, FromBase64, Standard, Config};
use serialize::base64::{ToBase64, FromBase64, Standard, Config, Newline};
use header::{Header, HeaderFormat};
/// The `Authorization` header field.
@@ -97,6 +97,7 @@ impl Scheme for Basic {
}
text.as_bytes().to_base64(Config {
char_set: Standard,
newline: Newline::CRLF,
pad: true,
line_length: None
}).fmt(f)