File tree 1 file changed +2
-2
lines changed
nativescript-background-http
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ class MultiMultiPartForm {
317
317
if ( ! this . fields [ i ] . filename ) {
318
318
results += CRLF + CRLF + this . fields [ i ] . value + CRLF ;
319
319
} else {
320
- results += '; filename="' + this . fields [ i ] . filename + '"' ;
320
+ results += '; filename="' + this . fields [ i ] . destFilename + '"' ;
321
321
if ( this . fields [ i ] . mimeType ) {
322
322
results += CRLF + "Content-Type: " + this . fields [ i ] . mimeType ;
323
323
}
@@ -338,7 +338,7 @@ class MultiMultiPartForm {
338
338
339
339
}
340
340
// Add final part of it...
341
- results += CRLF + "--" + this . boundary + "--" + CRLF ;
341
+ results += "--" + this . boundary + "--" + CRLF ;
342
342
tempString = NSString . stringWithString ( results ) ;
343
343
newData = tempString . dataUsingEncoding ( NSUTF8StringEncoding ) ;
344
344
combinedData . appendData ( newData ) ;
You can’t perform that action at this time.
0 commit comments