Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
e7c45f9e
Commit
e7c45f9e
authored
Feb 11, 2012
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix header_template for forever iframe docs example
parent
eef068c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
README.textile
README.textile
+1
-1
No files found.
README.textile
View file @
e7c45f9e
...
@@ -192,7 +192,7 @@ Create a html page with the content on **Client** part, access it from browser a
...
@@ -192,7 +192,7 @@ Create a html page with the content on **Client** part, access it from browser a
set $push_stream_channels_path $1;
set $push_stream_channels_path $1;
# header to be sent when receiving new subscriber connection
# header to be sent when receiving new subscriber connection
push_stream_header_template "
<html><head><meta
http-equiv=
\"Content-Type\"
content=
\"text/html;
charset=
utf-8\"
>
\r\n
<meta
http-equiv=
\"Cache-Control\"
content=
\"no-store\"
>
\r\n
<meta
http-equiv=
\"Cache-Control\"
content=
\"no-cache\"
>
\r\n
<meta
http-equiv=
\"Pragma\"
content=
\"no-cache\"
>
\r\n
<meta
http-equiv=
\"Expires\"
content=
\"Thu,
1
Jan
1970
00:00:00
GMT
\"
>
\r\n
<script
type=
\"text/javascript\"
>
\
r
\
nwindow
.
onError
=
null
;
\
r
\
n
document
.
domain
=
'
localhost
'
;
\
r
\
nparent
.
PushStream
.
register
(
this
);
\
r
\
n
</script>
\r\n
</head>
\r\n
<body
onload=
\"try
{
parent
.
PushStream
.
reset
(
this
)
}
catch
(
e
)
{}\"
>
";
push_stream_header_template "
<html><head><meta
http-equiv=
\"Content-Type\"
content=
\"text/html;
charset=
utf-8\"
>
\r\n
<meta
http-equiv=
\"Cache-Control\"
content=
\"no-store\"
>
\r\n
<meta
http-equiv=
\"Cache-Control\"
content=
\"no-cache\"
>
\r\n
<meta
http-equiv=
\"Pragma\"
content=
\"no-cache\"
>
\r\n
<meta
http-equiv=
\"Expires\"
content=
\"Thu,
1
Jan
1970
00:00:00
GMT
\"
>
\r\n
<script
type=
\"text/javascript\"
>
\
r
\
nwindow
.
onError
=
null
;
\
r
\
n
try
{
document
.
domain
=
(
window
.
location
.
hostname
.
match
(
/^
(\d{1,3}\.){3}\d{1,3}
$/
))
?
window
.
location
.
hostname
:
window
.
location
.
hostname
.
split
(
'
.
'
).
slice
(
-
2
).
join
(
'
.
'
);}
catch
(
e
){}
\
r
\
nparent
.
PushStream
.
register
(
this
);
\
r
\
n
</script>
\r\n
</head>
\r\n
<body
>
";
# message template
# message template
push_stream_message_template "
<script>
p
(
~
id
~
,
'
~channel~
'
,
'
~text~
'
);
</script>
";
push_stream_message_template "
<script>
p
(
~
id
~
,
'
~channel~
'
,
'
~text~
'
);
</script>
";
# footer to be sent when finishing subscriber connection
# footer to be sent when finishing subscriber connection
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment