mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2026-02-04 16:45:52 +08:00
Disable MaxContentLength and MaxBodyLength check (#23)
* Disable MaxContentLength and MaxBodyLength check
This commit is contained in:
@@ -9,7 +9,7 @@ const request = async({ method, instanceConfig, data, files, auth, actions, prev
|
||||
try {
|
||||
if (escapeData) {
|
||||
data = data.replace(/"[^"]*"/g, (match) => {
|
||||
return match.replace(/[\n\r]\s*/g, "\\n");
|
||||
return match.replace(/[\n\r]\s*/g, "\\n");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -35,7 +35,9 @@ const request = async({ method, instanceConfig, data, files, auth, actions, prev
|
||||
const requestData = {
|
||||
auth,
|
||||
method,
|
||||
data
|
||||
data,
|
||||
maxContentLength: Infinity,
|
||||
maxBodyLength: Infinity
|
||||
}
|
||||
|
||||
actions.debug('Instance Configuration: ' + JSON.stringify(instanceConfig))
|
||||
|
||||
Reference in New Issue
Block a user