Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http api post form params always with quote sign '"' #3910

Closed
toplinuxsir opened this issue Apr 18, 2022 · 0 comments
Closed

http api post form params always with quote sign '"' #3910

toplinuxsir opened this issue Apr 18, 2022 · 0 comments

Comments

@toplinuxsir
Copy link

Describe the bug

    let postBody = Body.form({ username: "user", password:"password" });

    let res = await client.request({
      url: "http://server/primary/auth/",
      method: "POST",
      body: postBody,
    });

the backend get the username with ' "username" ' with double quote sign and password ' "password" ' with double quote sign
how to remove the sign double quote "?

Reproduction

    let postBody = Body.form({ username: "user", password:"password" });

    let res = await client.request({
      url: "http://server/primary/auth/",
      method: "POST",
      body: postBody,
    });

the backend get the username with ' "username" ' with double quote sign and password ' "password" ' with double quote sign
how to remove the sign double quote "?

Expected behavior

No response

Platform and versions

Environment
  › OS: Ubuntu 21.10 X64
  › Node.js: 17.9.0
  › npm: 8.5.5
  › pnpm: Not installed!
  › yarn: 1.22.11
  › rustup: 1.24.3
  › rustc: 1.60.0
  › cargo: 1.60.0
  › Rust toolchain: stable-x86_64-unknown-linux-gnu 

Packages
  › @tauri-apps/cli [NPM]: 1.0.0-rc.7(outdated, latest: 1.0.0-rc.8)
  › @tauri-apps/api [NPM]: 1.0.0-rc.2(outdated, latest: 1.0.0-rc.3)
  › tauri [RUST]: 1.0.0-rc.6,
  › tauri-build [RUST]: 1.0.0-rc.5,
  › tao [RUST]: 0.7.0,
  › wry [RUST]: 0.14.0,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../public
  › devPath: http://localhost:8080/
  › framework: Svelte
  › bundler: Rollup

App directory structure
  ├─ public
  ├─ src-tauri
  ├─ .git
  ├─ src
  ├─ .vscode
  └─ node_modules

Stack trace

No response

Additional context

No response

@toplinuxsir toplinuxsir changed the title http api post form params always with quot sign '"' http api post form params always with quote sign '"' Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant