Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tinyhttp/content-disposition

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/content-disposition - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

CHANGELOG.md
# @tinyhttp/content-disposition
## 1.0.2
### Patch Changes
- strip bytes from readme
## 1.0.1

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@tinyhttp/content-disposition",
"description": "content-disposition rewrite in TypeScript with ESM and CommonJS targets",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/talentlessguy/tinyhttp#readme",

@@ -6,0 +6,0 @@ "repository": {

@@ -66,5 +66,3 @@ # @tinyhttp/accepts

```js
const disposition = contentDisposition.parse(
'attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt'
)
contentDisposition.parse('attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt')
```

@@ -100,7 +98,5 @@

createServer((req, res) => {
// set headers
res.setHeader('Content-Type', 'application/pdf')
res.setHeader('Content-Disposition', contentDisposition(filePath))
// send file
const stream = fs.createReadStream(filePath)

@@ -107,0 +103,0 @@ stream.pipe(res)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc