Skip to content

issues Search Results · repo:jshttp/accepts language:JavaScript

Filter by

18 results
 (85 ms)

18 results

injshttp/accepts (press backspace or delete to remove)

Team, I wanted to point out that Black Duck is flagging operational vulnerabilities with accepts due to a lack of active development. Please update the dependency packages to the latest version if any. ...
  • anu-trellix
  • 1
  • Opened 
    on Mar 18
  • #41

Hi, i want to use this library with not only IncomingMessage instances. Node.js 16+ has Fetch API now and it has global constructors such as Request, Response, Headers and other. Also i see that implementation ...
discuss
ideas
  • krutoo
  • Opened 
    on Mar 20, 2024
  • #30

Hi! Reporting a bug. When I import express, it imports accepts which imports negotiator. However, it seems that version 1.3.8 of accepts cannot find the negotiator dependency. It has to be explicitly ...
awaiting more info
  • gjethwani
  • 3
  • Opened 
    on Mar 19, 2024
  • #29

As per spec https://www.rfc-editor.org/rfc/rfc9110#section-12.5.1-14 this is valid: Accept: text/*, text/plain, text/plain;format=flowed, */* This library does not seem to have a way to extract the format ...
  • pke
  • Opened 
    on Nov 16, 2023
  • #28

Hi 👋 I m using express, and i m trying to figure out how to get the preferred region code (2 letter country code) do you have any recommendations to deal with this? almost feel like the negotiator dep ...
enhancement
  • jimmywarting
  • 4
  • Opened 
    on Feb 9, 2022
  • #23

The current default is that: Treats non-existent headers as * , which doesn t make sense. const contentType = accepts(incomingMessage) .type([ image/webp , image/jpeg , ]) || image/jpeg ...
question
  • gajus
  • 3
  • Opened 
    on May 23, 2020
  • #20

It would be nice to add types so that the following would work. // Accepts: application/hal+json const accept = accepts(req); switch(accept.type([ json , html ])) { case json : // would ...
enhancement
  • btilford
  • Opened 
    on Oct 4, 2019
  • #19

const accepts = require( accepts ) const accept = accepts({ headers: { accept : text/* , }, }) console.log(accept.types([ application/json , text/html ])) // text/html console.log(accept.types([ ...
question
  • lkmill
  • 5
  • Opened 
    on Apr 21, 2019
  • #18

A header like this application/json; charset=utf-8 Works correctly with accept.types() = [ application/json ]) But accept.type([ text , application/json ] or accept.type([ text , json ] gives false ...
wontfix
  • FredrikFolkesson
  • 12
  • Opened 
    on Jun 1, 2018
  • #17

Context In order to write a spec compliant content negotiation on the server, we also need to handle a request with e.g., the extreme accept: */*;q=0, which should return a 406 not acceptable. Use cases ...
question
  • pietercolpaert
  • 4
  • Opened 
    on May 3, 2018
  • #16
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub