Skip to content

Commit 6581b14

Browse files
authored
Changes for v3.1.0
1 parent 2451db1 commit 6581b14

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Change Log
2+
## cordova-plugin-wkwebview-file-xhr v3.1.0 (07/07/2022)
3+
* Fix content-disposition case issue (issue #88).
4+
25
## cordova-plugin-wkwebview-file-xhr v3.0.0 (09/09/2020)
36
* Upgraded to support cordova-ios 6.0 by removing dependency from wkwebview engine. (issue #55)
47
* Fix HEADERS_RECEIVED const typo (issue #37).

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# cordova-plugin-wkwebview-file-xhr 3.0.0
1+
# cordova-plugin-wkwebview-file-xhr 3.1.0
22

33
## About the cordova-plugin-wkwebview-file-xhr
44

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-plugin-wkwebview-file-xhr",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "Cordova WKWebView File XHR Plugin",
55
"cordova": {
66
"id": "cordova-plugin-wkwebview-file-xhr",

plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
2323
id="cordova-plugin-wkwebview-file-xhr"
24-
version="3.0.0">
24+
version="3.1.0">
2525
<name>Cordova WKWebView File XHR Plugin</name>
2626
<description>This plugin includes the Apache Cordova WKWebView plugin and resolves XHR Cross-Origin Resource Sharing (CORS) constraints.</description>
2727
<license>UPL 1.0</license>

src/www/ios/formdata-polyfill.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
data.push("--" + boundary + "\r\n");
333333
if (!entry['filename'])
334334
{
335-
data.push('content-disposition: form-data; name="');
335+
data.push('Content-Disposition: form-data; name="');
336336
data.push(entry.name);
337337
data.push('"\r\n');
338338
data.push('\r\n');
@@ -342,7 +342,7 @@
342342
else
343343
{
344344
// Describe it as form data
345-
data.push('content-disposition: form-data; name="');
345+
data.push('Content-Disposition: form-data; name="');
346346
data.push(entry.name)
347347
data.push('"; filename="');
348348
data.push(entry.filename);

0 commit comments

Comments
 (0)