Skip to content

Commit db917c8

Browse files
committed
x-file-size can be sent as undefined text
1 parent f7d102b commit db917c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins-server/cloud9.fs/fs/file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require("util").inherits(jsDAV_FS_File, jsDAV_FS_Node);
2929
var path = this.path;
3030
// is it a chunked upload?
3131
var size = handler.httpRequest.headers["x-file-size"];
32-
if (size) {
32+
if (size && size !== "undefined") {
3333
var parts = Util.splitPath(this.path);
3434
if (!handler.httpRequest.headers["x-file-name"])
3535
handler.httpRequest.headers["x-file-name"] = parts[1];

0 commit comments

Comments
 (0)