@@ -7,6 +7,8 @@
#else
#include "parson/parson.h"
#endif
+#include <stdlib.h>
+#include <time.h>
extern double getCurrentTime(void);
extern void log_printf(int level, const char *format ...);
@@ -100,8 +100,9 @@ static size_t header_callback_bbscgi(char *buffer, size_t size, size_t nitems, v
poster->_status = 1;
}
- } else if (poster->_manageCookies && atoi(ptr) == 1930) {
- if (poster->_isFirstRun) {
+ } else if (poster->_manageCookies) {
+ int code = atoi(ptr);
+ if ((code == 1932) && poster->_isFirstRun) { // was 1930, 1931
poster->_status = 2;