Skip to content

Instantly share code, notes, and snippets.

@etherealite
Last active January 17, 2016 09:26
Show Gist options
  • Save etherealite/9dad7b89909f1a3a4b7d to your computer and use it in GitHub Desktop.
Save etherealite/9dad7b89909f1a3a4b7d to your computer and use it in GitHub Desktop.
// parsing http request authorization body
https://regex101.com/r/bO7vG8/5
let pat = /([^=,\s]*)\s*=\s*["'\s]?([^,"]+)["'\s]?/gi;
let WWW-Authenticate =`Digest username="sdfa", realm="dggrs", nonce="0.9645404655020684 ", `+
`uri="/", response="27d9d30c793867d9db15cc69145a72bd", opaque="undefined", qop=auth, `+
`nc=00000001, cnonce="fa56655dc694e1a0"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment