Skip to content

Commit 6be310f

Browse files
committed
blink1control: allow URLs with no LastModified headers to play, see issue #129
1 parent 7104575 commit 6be310f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

qt/blink1control/datainput.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -226,16 +226,15 @@ void DataInput::onFinished()
226226
qDebug() << "onFinished: url finished: lastMod:"<< lastModTime << " txt: " << txt;
227227

228228
if( lastModTime == -1 ) { // missing lastmodified
229-
lastModTime = 0; // put as far back in time as possible
229+
lastModTime = input->date() + 10 ; // so fake it
230230
}
231231
if( lastModTime <= input->date() ) { // old page
232232
qDebug() << "onFinished: old url";
233233
// FIXME: do something better here
234234
input->setArg2( "Not Modified" ); // FIXME: arg2 should not be used for lastVal
235235
}
236236
else {
237-
input->setDate(lastModTime); // FIXME: blinkinput vs datainput? which is which, omg marcin, really?
238-
237+
input->setDate(lastModTime); // FIXME: blinkinput vs datainput? which is which,omg marcin,really?
239238
parsePatternOrColor( txt, type, lastModTime);
240239
}
241240
}

0 commit comments

Comments
 (0)