Consistent capitalization of titles
This commit is contained in:
		
							parent
							
								
									31dbbf5431
								
							
						
					
					
						commit
						9f8482e968
					
				| @ -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>") | ||||
| 			)); | ||||
| 		} | ||||
| 
 | ||||
|  | ||||
| @ -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)), | ||||
| 						)), | ||||
| 					} | ||||
|  | ||||
| @ -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 => { | ||||
|  | ||||
| @ -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.") | ||||
| 	)) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user