comparison Core/HttpServer/MongooseServer.cpp @ 415:d558fa565c42

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 May 2013 13:51:59 +0200
parents 26290b46056b
children 1188cb0ddaa5
comparison
equal deleted inserted replaced
414:26290b46056b 415:d558fa565c42
679 } 679 }
680 680
681 681
682 // Call the proper handler for this URI 682 // Call the proper handler for this URI
683 UriComponents uri; 683 UriComponents uri;
684 Toolbox::SplitUriComponents(uri, request->uri); 684 try
685 {
686 Toolbox::SplitUriComponents(uri, request->uri);
687 }
688 catch (OrthancException)
689 {
690 output.SendHeader(Orthanc_HttpStatus_400_BadRequest);
691 return (void*) "";
692 }
693
685 694
686 HttpHandler* handler = that->FindHandler(uri); 695 HttpHandler* handler = that->FindHandler(uri);
687 if (handler) 696 if (handler)
688 { 697 {
689 try 698 try