mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
chore: fix typos in test (#6923)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
committed by
GitHub
parent
7d551393c3
commit
eb0a2db04b
@@ -627,7 +627,7 @@ for (const [header, value] of headers) {
|
|||||||
headers.get('x');
|
headers.get('x');
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// AxiosHeaders instance assigment
|
// AxiosHeaders instance assignment
|
||||||
|
|
||||||
{
|
{
|
||||||
const requestInterceptorId: number = axios.interceptors.request.use(
|
const requestInterceptorId: number = axios.interceptors.request.use(
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ describe('defaults', function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should resistent to ReDoS attack', function (done) {
|
it('should resistant to ReDoS attack', function (done) {
|
||||||
const instance = axios.create();
|
const instance = axios.create();
|
||||||
const start = performance.now();
|
const start = performance.now();
|
||||||
const slashes = '/'.repeat(100000);
|
const slashes = '/'.repeat(100000);
|
||||||
|
|||||||
Reference in New Issue
Block a user