Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: expressjs/multer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: lts
Choose a base ref
...
head repository: InteropIO/multer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: lts
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 4 commits
  • 3 files changed
  • 2 contributors

Commits on Sep 11, 2024

  1. Copy the full SHA
    a94ba43 View commit details
  2. Copy the full SHA
    b87033e View commit details

Commits on Nov 27, 2024

  1. Create fork-sync.yml

    HristoKolev authored Nov 27, 2024
    Copy the full SHA
    5870b9b View commit details
  2. renamed worflows folder

    HristoKolev authored Nov 27, 2024
    Copy the full SHA
    150380f View commit details
Showing with 27 additions and 3 deletions.
  1. +15 −0 .github/workflows/fork-sync.yml
  2. +7 −1 lib/make-middleware.js
  3. +5 −2 package.json
15 changes: 15 additions & 0 deletions .github/workflows/fork-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Fork Sync

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: CloudNStoyan/fork-sync@v1.2
with:
base: lts
head: lts
auto_merge: false
8 changes: 7 additions & 1 deletion lib/make-middleware.js
Original file line number Diff line number Diff line change
@@ -8,6 +8,8 @@ var MulterError = require('./multer-error')
var FileAppender = require('./file-appender')
var removeUploadedFiles = require('./remove-uploaded-files')

var zlib = require('zlib')

function makeMiddleware (setup) {
return function multerMiddleware (req, res, next) {
if (!is(req, ['multipart'])) return next()
@@ -166,7 +168,11 @@ function makeMiddleware (setup) {
indicateDone()
})

req.pipe(busboy)
if (req.headers['content-encoding'] === 'gzip') {
req.pipe(zlib.createGunzip()).pipe(busboy)
} else {
req.pipe(busboy)
}
}
}

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "multer",
"name": "@interopio/multer",
"description": "Middleware for handling `multipart/form-data`.",
"version": "1.4.5-lts.1",
"contributors": [
@@ -8,7 +8,10 @@
"Linus Unnebäck <linus@folkdatorn.se>"
],
"license": "MIT",
"repository": "expressjs/multer",
"repository": "InteropIO/multer",
"publishConfig": {
"registry": "https://glue42.jfrog.io/artifactory/api/npm/default-npm-virtual/"
},
"keywords": [
"form",
"post",