pnever 2002/08/02 09:13:14
Modified: src/webdav/server/org/apache/slide/webdav/method
GetMethod.java
Log:
Changed resp.setStatus() by resp.sendError() in one case.
Revision Changes Path
1.31 +14 -8
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/GetMethod.java
Index: GetMethod.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/GetMethod.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- GetMethod.java 14 Jun 2002 12:24:05 -0000 1.30
+++ GetMethod.java 2 Aug 2002 16:13:13 -0000 1.31
@@ -202,10 +202,12 @@
throw new WebdavException(getErrorCode((Exception)e));
}
catch (SlideException e) {
+ int statusCode = getErrorCode((Exception)e);
try {
- resp.sendError(getErrorCode((Exception)e));
- } catch (IOException ioe) {}
- throw new WebdavException(getErrorCode((Exception)e));
+ resp.sendError( statusCode );
+ }
+ catch (IOException ioe) {}
+ throw new WebdavException( statusCode );
}
}
@@ -326,8 +328,12 @@
}
} catch (Exception e) {
- resp.setStatus(getErrorCode(e)); // special handling needed
- throw new WebdavException(WebdavStatus.SC_ACCEPTED, false); // abort
the TA
+ int statusCode = getErrorCode(e);
+ try {
+ resp.sendError( statusCode ); // special handling needed
+ }
+ catch( IOException ioe ) {};
+ throw new WebdavException( statusCode ); // abort the TA
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>