mirror of
https://github.com/SinTan1729/chhoto-url
synced 2025-02-05 13:52:33 -06:00
chg: Small cosmetic change
This commit is contained in:
parent
1d9a8c202d
commit
cba667ded8
1 changed files with 6 additions and 1 deletions
|
@ -62,7 +62,12 @@ pub fn is_api_ok(http: HttpRequest) -> Response {
|
||||||
} else {
|
} else {
|
||||||
// If the API key isn't set, but an API Key header is provided
|
// If the API key isn't set, but an API Key header is provided
|
||||||
if auth::api_header(&http).is_some() {
|
if auth::api_header(&http).is_some() {
|
||||||
Response {success: false, error: true, reason: "An API key was provided, but the 'api_key' environment variable is not configured in the Chhoto URL instance".to_string(), pass: false}
|
Response {
|
||||||
|
success: false,
|
||||||
|
error: true,
|
||||||
|
reason: "An API key was provided, but the 'api_key' environment variable is not configured in the Chhoto URL instance".to_string(),
|
||||||
|
pass: false
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Response {
|
Response {
|
||||||
success: false,
|
success: false,
|
||||||
|
|
Loading…
Reference in a new issue