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
1674a89e
Commit
1674a89e
authored
Dec 19, 2010
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing the end of string character from the message sent to the subscriber
parent
d630c103
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ngx_http_push_stream_module_utils.c
src/ngx_http_push_stream_module_utils.c
+2
-2
No files found.
src/ngx_http_push_stream_module_utils.c
View file @
1674a89e
...
@@ -460,7 +460,7 @@ ngx_http_push_stream_get_formatted_message_locked(ngx_http_push_stream_loc_conf_
...
@@ -460,7 +460,7 @@ ngx_http_push_stream_get_formatted_message_locked(ngx_http_push_stream_loc_conf_
ngx_buf_t
*
buf_msg
=
ngx_calloc_buf
(
pool
);
ngx_buf_t
*
buf_msg
=
ngx_calloc_buf
(
pool
);
buf_msg
->
pos
=
txt
;
buf_msg
->
pos
=
txt
;
buf_msg
->
last
=
buf_msg
->
pos
+
ngx_strlen
(
txt
)
+
1
;
buf_msg
->
last
=
buf_msg
->
pos
+
ngx_strlen
(
txt
);
buf_msg
->
start
=
buf_msg
->
pos
;
buf_msg
->
start
=
buf_msg
->
pos
;
buf_msg
->
end
=
buf_msg
->
last
;
buf_msg
->
end
=
buf_msg
->
last
;
buf_msg
->
temporary
=
1
;
buf_msg
->
temporary
=
1
;
...
@@ -468,7 +468,7 @@ ngx_http_push_stream_get_formatted_message_locked(ngx_http_push_stream_loc_conf_
...
@@ -468,7 +468,7 @@ ngx_http_push_stream_get_formatted_message_locked(ngx_http_push_stream_loc_conf_
return
buf_msg
;
return
buf_msg
;
}
else
if
(
buf
!=
NULL
)
{
}
else
if
(
buf
!=
NULL
)
{
ngx_uint_t
len_org
=
ngx_buf_size
(
buf
);
ngx_uint_t
len_org
=
ngx_buf_size
(
buf
);
ngx_uint_t
len
=
len_org
+
NGX_HTTP_PUSH_STREAM_CRLF
.
len
+
1
;
ngx_uint_t
len
=
len_org
+
NGX_HTTP_PUSH_STREAM_CRLF
.
len
;
u_char
*
txt_with_crlf
=
ngx_pcalloc
(
pool
,
len
);
u_char
*
txt_with_crlf
=
ngx_pcalloc
(
pool
,
len
);
ngx_memcpy
(
txt_with_crlf
,
buf
->
pos
,
len_org
);
ngx_memcpy
(
txt_with_crlf
,
buf
->
pos
,
len_org
);
ngx_memcpy
(
txt_with_crlf
+
len_org
,
NGX_HTTP_PUSH_STREAM_CRLF
.
data
,
NGX_HTTP_PUSH_STREAM_CRLF
.
len
);
ngx_memcpy
(
txt_with_crlf
+
len_org
,
NGX_HTTP_PUSH_STREAM_CRLF
.
data
,
NGX_HTTP_PUSH_STREAM_CRLF
.
len
);
...
...
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