Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Consistent capitalization of titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Drwięga committed Sep 1, 2016
1 parent 31dbbf5 commit 9f8482e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dapps/src/apps/fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ impl<R: URLHint> AppFetcher<R> {
if self.sync.is_major_syncing() {
return Box::new(ContentHandler::error(
StatusCode::ServiceUnavailable,
"Sync in progress",
"Sync In Progress",
"Your node is still syncing. We cannot resolve any content before it's fully synced.",
None
Some("<a href=\"javascript:window.location.reload()\">Refresh</a>")
));
}

Expand Down
2 changes: 1 addition & 1 deletion dapps/src/handlers/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl<H: ContentValidator> server::Handler<HttpStream> for ContentFetcherHandler<
Err(e) => FetchState::Error(ContentHandler::error(
StatusCode::BadGateway,
"Unable To Start Dapp Download",
"Could not initialize download of the dapp. It might be a problem with remote server.",
"Could not initialize download of the dapp. It might be a problem with the remote server.",
Some(&format!("{}", e)),
)),
}
Expand Down
4 changes: 3 additions & 1 deletion dapps/src/router/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ impl Authorization for HttpBasicAuth {
Access::Denied => {
Authorized::No(Box::new(ContentHandler::error(
status::StatusCode::Unauthorized,
"Unauthorized", "You need to provide valid credentials to access this page.", None
"Unauthorized",
"You need to provide valid credentials to access this page.",
None
)))
},
Access::AuthRequired => {
Expand Down
2 changes: 1 addition & 1 deletion dapps/src/router/host_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn is_valid(request: &server::Request<HttpStream>, allowed_hosts: &[String],

pub fn host_invalid_response() -> Box<server::Handler<HttpStream> + Send> {
Box::new(ContentHandler::error(StatusCode::Forbidden,
"Current host is disallowed",
"Current Host Is Disallowed",
"You are trying to access your node using incorrect address.",
Some("Use allowed URL or specify different <code>hosts</code> CLI options.")
))
Expand Down

0 comments on commit 9f8482e

Please sign in to comment.