Skip to content

node-fetch-server v0.14.2

Choose a tag to compare

@github-actions github-actions released this 28 Sep 21:45
c9c8939

Patch Changes

  • Use HTTP/2 :authority before Host when constructing request URLs. Requests whose Host and :authority identify different hosts now receive a 400 response by default from createRequestListener(), with custom responses supported through onError. Equivalent hostnames and default ports remain accepted.

  • createRequestListener() now accepts request-only handlers separately from handlers that read client address information, so handlers such as router.fetch can be passed directly.

  • Declare package modules as side-effect-free.