Skip to content

Commit fc30bee

Browse files
committed
bump
1 parent 06a83f6 commit fc30bee

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

OpenFlow/src/Messages/Message.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,12 @@ export class Message {
10401040
if (Util.IsNullEmpty(msg.filename)) throw new Error("Filename is mandatory");
10411041
// if (Util.IsNullEmpty(msg.mimeType)) throw new Error("mimeTypes is mandatory");
10421042
if (Util.IsNullEmpty(msg.file)) throw new Error("file is mandatory");
1043+
if (process.platform === "win32") {
1044+
msg.filename = msg.filename.replace(/\//g, "\\");
1045+
}
1046+
else {
1047+
msg.filename = msg.filename.replace(/\\/g, "/");
1048+
}
10431049

10441050
if (Util.IsNullEmpty(msg.mimeType)) {
10451051
msg.mimeType = lookup(msg.filename);

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.340
1+
0.0.341

0 commit comments

Comments
 (0)