2007-10-07 Complication

* Fix an issue in EepGet whereby sending of "etag" and "lastModified" headers
      broke retrying.
This commit is contained in:
complication
2007-10-08 02:36:17 +00:00
committed by zzz
parent 313e1704df
commit 5accba6cdc
3 changed files with 9 additions and 6 deletions

View File

@ -573,7 +573,6 @@ public class EepGet {
if (_log.shouldLog(Log.DEBUG))
_log.debug("rc: " + responseCode + " for " + _actualURL);
boolean rcOk = false;
switch (responseCode) {
case 200: // full
@ -852,12 +851,12 @@ public class EepGet {
buf.append("Cache-control: no-cache\r\n");
buf.append("Pragma: no-cache\r\n");
}
if (_etag != null) {
if ((_etag != null) && (_alreadyTransferred <= 0)) {
buf.append("If-None-Match: ");
buf.append(_etag);
buf.append("\r\n");
}
if (_lastModified != null) {
if ((_lastModified != null) && (_alreadyTransferred <= 0)) {
buf.append("If-Modified-Since: ");
buf.append(_lastModified);
buf.append("\r\n");