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

[bug] incorrect response status reason phrase #733

Closed
liesauer opened this issue Oct 24, 2022 · 0 comments · Fixed by #698
Closed

[bug] incorrect response status reason phrase #733

liesauer opened this issue Oct 24, 2022 · 0 comments · Fixed by #698
Labels
status: needs triage This issue or pull request needs to be investigated type: bug

Comments

@liesauer
Copy link

Describe the bug

HttpResponseBuilder::new()
    .status(status::StatusCode::FORBIDDEN)
    .body(Vec::new())

actually get 403 OK

image

Reproduction

No response

Expected behavior

403 Forbidden

Platform and versions

Environment
  › OS: Windows 10.0.19044 X64
  › Webview2: 106.0.1370.52
  › MSVC:
      - Visual Studio Community 2019
      - Visual Studio 15 ���ɹ��� 2017
  › Node.js: 16.17.0
  › npm: 8.19.2
  › pnpm: 7.13.5
  › yarn: 1.22.19
  › rustup: 1.25.1
  › rustc: 1.63.0
  › cargo: 1.63.0
  › Rust toolchain: stable-x86_64-pc-windows-msvc 

Packages
  › @tauri-apps/cli [NPM]: 1.0.5
  › @tauri-apps/api [NPM]: 1.0.2
  › tauri [RUST]: 1.1.1,
  › tauri-build [RUST]: 1.1.1,
  › tao [RUST]: 0.14.0,
  › wry [RUST]: 0.21.1,

App
  › framework: Svelte

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

Stack trace

No response

Additional context

No response

@liesauer liesauer added status: needs triage This issue or pull request needs to be investigated type: bug labels Oct 24, 2022
@amrbashir amrbashir transferred this issue from tauri-apps/tauri Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue or pull request needs to be investigated type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant