Author: markt Date: Fri Jan 20 17:30:46 2017 New Revision: 1779654 URL: http://svn.apache.org/viewvc?rev=1779654&view=rev Log: Code clean-up Remove unnecessary check. The DefaultServlet checks this already.
Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?rev=1779654&r1=1779653&r2=1779654&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Fri Jan 20 17:30:46 2017 @@ -784,9 +784,6 @@ public class NioEndpoint extends Abstrac if (sd.fchannel == null) { // Setup the file channel File f = new File(sd.fileName); - if (!f.exists()) { - return SendfileState.ERROR; - } @SuppressWarnings("resource") // Closed when channel is closed FileInputStream fis = new FileInputStream(f); sd.fchannel = fis.getChannel(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org