We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06a83f6 commit fc30beeCopy full SHA for fc30bee
2 files changed
OpenFlow/src/Messages/Message.ts
@@ -1040,6 +1040,12 @@ export class Message {
1040
if (Util.IsNullEmpty(msg.filename)) throw new Error("Filename is mandatory");
1041
// if (Util.IsNullEmpty(msg.mimeType)) throw new Error("mimeTypes is mandatory");
1042
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
1049
1050
if (Util.IsNullEmpty(msg.mimeType)) {
1051
msg.mimeType = lookup(msg.filename);
VERSION
@@ -1 +1 @@
1
-0.0.340
+0.0.341
0 commit comments