wandenberg/nginx-push-stream-module — pull request #48 by sebcante (2012-09-28 07:25:51+00:00)
Title: Fix  for multipart domain suffix  (com.au) for Firefox

Hi Wandenberg,

If the web client is on a domain with multiple domain suffix like : mydomain.*com.au*, then nginx pushstream.js set document.domain to 'com.au'. Firefox throws "Error: Illegal document.domain value".

I applied the following logic :
1) document.domain should be at least 2 parts
2) if 3, set the domain to the last 2.
3) if 4, se the domain to the last 3. etc..

Hope you can find this pull request useful.

cheers

-sebastien