forwardemail / forwardemail/supertest

[fix] don't change the requrest url hash

Open
#827 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
14.4k
Forks
782
PR merge metrics
No merged PRs in 30d

Description

## Describe the bug
```ts
import request from 'supertest';
import express from 'express';

const app = express();

app.use((req, res, next) => {
console.log(req.url);
return next();
});

await request(app).get('/path/to.html?q=1#hash');
```

expect `console.log(req.url);` should output `'/path/to.html?q=1#hash'`
but got `'/path/to.html?q=1'`

## Checklist

- [x] I have searched through GitHub issues for similar issues.
- [x] I have completely read through the README and documentation.
- [x] I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.