mirror of
				https://api.glitch.com/git/presence-button
				synced 2025-10-31 15:45:34 +00:00 
			
		
		
		
	🌯🍘 Checkpoint
./server.js:933874/184
This commit is contained in:
		
							parent
							
								
									757e56c9e3
								
							
						
					
					
						commit
						c372868b13
					
				| @ -29,7 +29,7 @@ const redirectToHTTPS = (req, res, next) => { | ||||
|     next(); | ||||
|   } else { | ||||
|     // request was via http, so redirect to https
 | ||||
|     res.redirect("https://" + req.headers.host + req.url); | ||||
|     res.redirect("https://" + req.headers.host + req.originalUrl); | ||||
|   } | ||||
| }; | ||||
| app.use("/api", redirectToHTTPS); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user