Spaces:
Configuration error
Configuration error
Download node_modules/axios/lib/helpers/toURLEncodedForm.js from CPISTO/TARSTHENEXT: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/spaces/CPISTO/TARSTHENEXT/resolve/main/node_modules/axios/lib/helpers/toURLEncodedForm.js
- Command line
-
hf download hf://spaces/CPISTO/TARSTHENEXT/node_modules/axios/lib/helpers/toURLEncodedForm.js
-
curl -L -o toURLEncodedForm.js https://huggingface.co/spaces/CPISTO/TARSTHENEXT/resolve/main/node_modules/axios/lib/helpers/toURLEncodedForm.js
540 Bytes
| ; | |
| import utils from '../utils.js'; | |
| import toFormData from './toFormData.js'; | |
| import platform from '../platform/index.js'; | |
| export default function toURLEncodedForm(data, options) { | |
| return toFormData(data, new platform.classes.URLSearchParams(), { | |
| visitor: function(value, key, path, helpers) { | |
| if (platform.isNode && utils.isBuffer(value)) { | |
| this.append(key, value.toString('base64')); | |
| return false; | |
| } | |
| return helpers.defaultVisitor.apply(this, arguments); | |
| }, | |
| ...options | |
| }); | |
| } | |