Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

When a protocol relative url is included in a script, it is not proxied #5

Merged
merged 1 commit into from

2 participants

@camwest

Example:

 <script src="//cdn.optimizely.com/js/122267127.js__XTND_SCRIPT"></script>
@deanmao deanmao merged commit 09dc30f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 14, 2012
  1. @camwest

    Updated threeComponents regexp to support relative protocols

    camwest authored
    Example: //cdn.optimizely.com/js/122267127.js
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/xtnd.coffee
View
2  lib/xtnd.coffee
@@ -1,7 +1,7 @@
xtnd = exports
_guide = null
-_threeComponents = /^(https?):\/\/([^\/]*)(.*)$/
+_threeComponents = /^(https?)?:?\/\/([^\/]*)(.*)$/
_twoComponents = /^\/\/([^\/]*)(.*)$/
listToHash = (str) ->
Something went wrong with that request. Please try again.