Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 318 Bytes

readme.md

File metadata and controls

18 lines (12 loc) · 318 Bytes

Prevent mime type sniffing for ▲ Zeit's micro

Written in Typescript since v1.1.0

Installation

yarn add micro-nosniff

Usage

import nosniff from 'micro-nosniff'
const handler = (req, res) => send(res, 200, 'ok!')

module.exports = nosniff(handler)