ing
This commit is contained in:
		
							parent
							
								
									8422254849
								
							
						
					
					
						commit
						a0b05817ef
					
				@ -139,10 +139,12 @@ func (s *Server) httpHandler(ctx *fasthttp.RequestCtx) {
 | 
			
		||||
	)
 | 
			
		||||
 | 
			
		||||
	if servlet = s.ServerHandler.(ServerHandler).Servlet(s.ctx, ctx); nil == servlet {
 | 
			
		||||
		s.onError(ctx, fasthttp.StatusInternalServerError, err)
 | 
			
		||||
		s.onError(ctx, fasthttp.StatusNotFound, err)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	servletCtx := servlet.ServletCtx(s.ctx)
 | 
			
		||||
 | 
			
		||||
	go servlet.Handle(servletCtx, ctx)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (s *Server) onError(ctx *fasthttp.RequestCtx, status int, reason error) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user