mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-31 08:01:34 +01:00 
			
		
		
		
	app: throw away not found body (#2566)
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
		
							parent
							
								
									9a86ffc102
								
							
						
					
					
						commit
						1dddd3e93b
					
				| @ -1029,13 +1029,10 @@ func notFoundHandler( | ||||
| 	writer http.ResponseWriter, | ||||
| 	req *http.Request, | ||||
| ) { | ||||
| 	body, _ := io.ReadAll(req.Body) | ||||
| 
 | ||||
| 	log.Trace(). | ||||
| 		Interface("header", req.Header). | ||||
| 		Interface("proto", req.Proto). | ||||
| 		Interface("url", req.URL). | ||||
| 		Bytes("body", body). | ||||
| 		Msg("Request did not match") | ||||
| 	writer.WriteHeader(http.StatusNotFound) | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user