File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ public static function init($config = array()){
61
61
self ::$ config = array ();
62
62
self ::$ config ['tempDir ' ] = isset ($ config ['tempDir ' ])?$ config ['tempDir ' ]:"temp " ;
63
63
self ::$ config ['hashChunk ' ] = isset ($ config ['hashChunk ' ])?$ config ['hashChunk ' ]:true ;
64
- self ::$ config ['deleteChunksOnSave ' ] = isset ($ config ['deleteChunksOnSave ' ])?$ config ['deleteChunksOnSave ' ]:true ;
64
+ self ::$ config ['deleteChunksOnSave ' ] = isset ($ config ['deleteChunksOnSave ' ])?$ config ['deleteChunksOnSave ' ]:true ;
65
+ self ::$ config ['flowNewVersion ' ] = isset ($ config ['flowNewVersion ' ])?$ config ['flowNewVersion ' ]:true ;
65
66
}
66
67
67
68
// --------------------------------------------------------------------
@@ -78,7 +79,11 @@ public static function GET(){
78
79
if (self ::checkChunk ()) {
79
80
header ("HTTP/1.1 200 Ok " );
80
81
} else {
81
- header ("HTTP/1.1 404 Not Found " );
82
+ if (self ::$ config ['flowNewVersion ' ]){
83
+ header ("HTTP/1.1 204 No Content " );
84
+ }else {
85
+ header ("HTTP/1.1 404 Not Found " );
86
+ }
82
87
exit ;
83
88
}
84
89
}
You can’t perform that action at this time.
0 commit comments