Skip to content

Commit ca6274c

Browse files
committed
Tokens are ASCII-only
1 parent 776129a commit ca6274c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/crates-io/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ pub fn check_token(token: &str) -> Result<()> {
545545
Ok(())
546546
} else {
547547
Err(Error::InvalidToken(
548-
"token contains invalid characters.\nOnly printable ISO-8859-1 characters \
548+
"token contains invalid characters.\nOnly printable ASCII characters \
549549
are allowed as it is sent in a HTTPS header.",
550550
))
551551
}

tests/testsuite/login.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ fn invalid_login_token() {
182182
183183
Caused by:
184184
token contains invalid characters.
185-
Only printable ISO-8859-1 characters are allowed as it is sent in a HTTPS header.
185+
Only printable ASCII characters are allowed as it is sent in a HTTPS header.
186186
",
187187
101,
188188
)

tests/testsuite/publish.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3616,7 +3616,7 @@ fn invalid_token() {
36163616
36173617
Caused by:
36183618
token contains invalid characters.
3619-
Only printable ISO-8859-1 characters are allowed as it is sent in a HTTPS header.
3619+
Only printable ASCII characters are allowed as it is sent in a HTTPS header.
36203620
36213621
"#]])
36223622
.with_status(101)

0 commit comments

Comments
 (0)