Last active
January 17, 2016 09:26
-
-
Save etherealite/9dad7b89909f1a3a4b7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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