Skip to content

Commit

Permalink
blink1control: allow URLs with no LastModified headers to play, see i…
Browse files Browse the repository at this point in the history
…ssue #129
  • Loading branch information
todbot committed Jul 8, 2014
1 parent 7104575 commit 6be310f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qt/blink1control/datainput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,16 +226,15 @@ void DataInput::onFinished()
qDebug() << "onFinished: url finished: lastMod:"<< lastModTime << " txt: " << txt;

if( lastModTime == -1 ) { // missing lastmodified
lastModTime = 0; // put as far back in time as possible
lastModTime = input->date() + 10 ; // so fake it
}
if( lastModTime <= input->date() ) { // old page
qDebug() << "onFinished: old url";
// FIXME: do something better here
input->setArg2( "Not Modified" ); // FIXME: arg2 should not be used for lastVal
}
else {
input->setDate(lastModTime); // FIXME: blinkinput vs datainput? which is which, omg marcin, really?

input->setDate(lastModTime); // FIXME: blinkinput vs datainput? which is which,omg marcin,really?
parsePatternOrColor( txt, type, lastModTime);
}
}
Expand Down

0 comments on commit 6be310f

Please sign in to comment.