(request, options)
| 63 | } |
| 64 | |
| 65 | function parseSignature(request, options) { |
| 66 | var opts = options || {}; |
| 67 | opts.algorithms = OPTIONS.algorithms; |
| 68 | |
| 69 | try { |
| 70 | return httpSignature.parseRequest(request, options); |
| 71 | } catch (e) { |
| 72 | throw new InvalidHeaderError( |
| 73 | 'Authorization header invalid: ' + e.message |
| 74 | ); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Parses out the `Authorization` header as best restify can. |
no outgoing calls
no test coverage detected