Skip to content

[fix] don't change the requrest url hash #827

Open
@hongxuWei

Description

@hongxuWei

Describe the bug

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions