You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 73621e9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+6-11Lines changed: 6 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -312,7 +312,9 @@ postData: {
312
312
313
313
###### application/json
314
314
315
-
*when postData.mimeType is one of: `application/json`, `text/json`, `text/x-json`, `application/x-json`*
315
+
- will match when `postData.mimeType` is one of: `application/json`, `text/json`, `text/x-json`, `application/x-json`
316
+
- In case of failure to parse `postData.text` as a JSON object, `postData.mimeType` is set to `text/plain`. this is done so that the implementing target, would still attempt to post the raw body as is.
317
+
- This also emphasizes not to rely on `postData.mimeType` for the `Content-Type` header!
316
318
317
319
```js
318
320
postData: {
@@ -338,15 +340,12 @@ postData: {
338
340
}
339
341
```
340
342
341
-
Notes:
342
-
343
-
- In case of failure to parse `postData.text` as a JSON object, `postData.mimeType` is set to `text/plain`. this is done so that the implementing target, would still attempt to post the raw body as is.
344
-
- This also emphasizes not to rely on `postData.mimeType` for the `Content-Type` header!
345
-
346
343
###### multipart/form-data
347
344
345
+
- will match when `postData.mimeType` is one of: `multipart/mixed``multipart/related`, `multipart/form-data`, `multipart/alternative`
346
+
- will force `postData.mimeType` to `multipart/form-data`
348
347
- will create/overwrite the `Content-Type` header if it does not exist, with the appropriate boundary flag.
349
-
-will create/overwrite the `Content-Length` header
348
+
-when no `params[].value` is present, will default to empty content
350
349
351
350
```js
352
351
postData: {
@@ -379,10 +378,6 @@ postData: {
379
378
380
379
###### multipart/form-data (File Uploads)
381
380
382
-
- will create/overwrite the `Content-Type` header if it does not exist, with the appropriate boundary flag.
383
-
- will create/overwrite the `Content-Length` header
384
-
- when no params[].value is present, will default to empty content
0 commit comments