Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
11
my-app/node_modules/karma/lib/middleware/strip_host.js
generated
vendored
Executable file
11
my-app/node_modules/karma/lib/middleware/strip_host.js
generated
vendored
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Strip hostname from request path
|
||||
* This to handle requests that uses (normally over proxies) an absoluteURI as request path
|
||||
*/
|
||||
|
||||
function stripHostFromUrl (url) {
|
||||
return url.replace(/^https?:\/\/[a-z.:\d-]+\//, '/')
|
||||
}
|
||||
|
||||
// PUBLIC API
|
||||
exports.stripHost = stripHostFromUrl
|
||||
Loading…
Add table
Add a link
Reference in a new issue