• R/O
  • SSH
  • HTTPS

bchan: 提交


Commit MetaInfo

修訂506 (tree)
時間2012-06-23 18:15:56
作者ornse01

Log Message

fix previous cache data.

Change Summary

差異

--- bchanl/trunk/src/bbsmenuretriever.c (revision 505)
+++ bchanl/trunk/src/bbsmenuretriever.c (revision 506)
@@ -140,6 +140,9 @@
140140 DP(("HTTP_CONNECTOR_EVENTTYPE_RECEIVE_STATUSLINE\n"));
141141 DP((" status = %d\n", hevent->data.receive_statusline.statuscode));
142142 retriever->status = hevent->data.receive_statusline.statuscode;
143+ if (retriever->status == HTTP_STATUSCODE_200_OK) {
144+ bbsmncache_cleardata(cache);
145+ }
143146 } else if (hevent->type == HTTP_CONNECTOR_EVENTTYPE_RECEIVE_HEADER) {
144147 #ifdef BCHANL_CONFIG_DEBUG
145148 {
Show on old repository browser