Skip to content

Fix static proxy responses forcing attachment downloads - #140

Open
vagdotdev wants to merge 1 commit into
tscircuit:mainfrom
vagdotdev:bounty/static-proxy-headers-5
Open

Fix static proxy responses forcing attachment downloads#140
vagdotdev wants to merge 1 commit into
tscircuit:mainfrom
vagdotdev:bounty/static-proxy-headers-5

Conversation

@vagdotdev

Copy link
Copy Markdown

Summary

  • keep resolveFileProxy download behavior as attachment by default
  • allow static routes to opt out of Content-Disposition: attachment
  • add disk and HTTP proxy regressions proving /files/static/... stays inline for proxied files

Why

Direct /files/static/... responses intentionally do not set Content-Disposition, but proxied static files reused the download resolver and forced attachment. That makes proxied static assets behave like downloads instead of inline static content.

Validation

  • bun test tests/routes/file-proxy02.test.ts tests/routes/file-proxy03.test.ts
  • bun test
  • bunx tsc --noEmit
  • bun run format:check
  • bun run build
  • git diff --check

/claim #5

@vagdotdev

Copy link
Copy Markdown
Author

/claim #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant