mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	redirect with webroot
This commit is contained in:
		
							parent
							
								
									23ae220aa7
								
							
						
					
					
						commit
						a12a7e73f9
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1034,8 +1034,8 @@ namespace http {
 | 
			
		|||
		}
 | 
			
		||||
		s << "<b>SUCCESS</b>: Command accepted<br><br>\r\n";
 | 
			
		||||
		s << "<a href=\"" << url.path << "?page=commands\">Back to commands list</a><br>\r\n";
 | 
			
		||||
		// s << "<p>You will be redirected in 5 seconds</b>";
 | 
			
		||||
		// res.add_header("Refresh", "5; url=/?page=commands");
 | 
			
		||||
		s << "<p>You will be redirected in 5 seconds</b>";
 | 
			
		||||
		res.add_header("Refresh", std::string("5; url=" + url.path + "?page=commands").c_str());
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	void HTTPConnection::SendReply (HTTPRes& reply, std::string& content)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue