mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	FIx for status-error crashing on routingFunction in app.js
This commit is contained in:
		| @@ -138,6 +138,9 @@ function routingFunction(req, res, next) { | |||||||
|             client(req, res, next); |             client(req, res, next); | ||||||
|         } |         } | ||||||
|     } catch(e) { |     } catch(e) { | ||||||
|         res.status(500); |         console.log("Bad request for " + req.headers.host + req.url, e); | ||||||
|  |         res.statusCode = 500; | ||||||
|  |         res.write('Bad request'); //write a response to the client | ||||||
|  |         res.end(); //end the response | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user