vapor / http

🚀 Non-blocking, event-driven HTTP built on Swift NIO.
MIT License
238 stars 65 forks source link

Add application/wasm HTTPMediaType #380

Closed PatrickPijnappel closed 2 years ago

PatrickPijnappel commented 2 years ago

Adds the application/wasm HTTP media type for .wasm files. Especially now with SwiftWasm gearing up this is relevant as WebAssembly.instantiateStreaming(…) requires the correct MIME type to be set.

0xTim commented 2 years ago

@PatrickPijnappel Did you mean to submit that here? HTTP is long deprecated and not used with Vapor 4

PatrickPijnappel commented 2 years ago

@0xTim Ah I see, no didn't mean to 😅

Created one in the main repo instead: https://github.com/vapor/vapor/pull/2697