Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
8b12263d
Commit
8b12263d
authored
Sep 30, 2016
by
Deomid Ryabkov
Committed by
Cesanta Bot
Sep 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mg_http_send_redirect doc
PUBLISHED_FROM=77cd3df9959b0e3a2550d1581586e69878bbee0d
parent
376d2666
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
mg_http_send_redirect.md
docs/c-api/http_server.h/mg_http_send_redirect.md
+2
-6
mongoose.h
mongoose.h
+2
-6
No files found.
docs/c-api/http_server.h/mg_http_send_redirect.md
View file @
8b12263d
...
...
@@ -13,12 +13,8 @@ Sends a redirect response.
new location.
If
`extra_headers`
is not empty, then
`extra_headers`
are also sent
after the reponse line.
`extra_headers`
must NOT end end with new line.
Example:
mg_send_response_line(nc, 200, "Access-Control-Allow-Origin: *");
Will result in
:
Example
:
HTTP/1.1 200 OK\r\n
Access-Control-Allow-Origin: *\r\n
mg_http_send_redirect(nc, 302, mg_mk_str("/login"), mg_mk_str(NULL));
mongoose.h
View file @
8b12263d
...
...
@@ -2814,14 +2814,10 @@ void mg_send_response_line(struct mg_connection *nc, int status_code,
* new location.
* If `extra_headers` is not empty, then `extra_headers` are also sent
* after the reponse line. `extra_headers` must NOT end end with new line.
* Example:
*
* mg_send_response_line(nc, 200, "Access-Control-Allow-Origin: *");
*
*
Will result in
:
*
Example
:
*
* HTTP/1.1 200 OK\r\n
* Access-Control-Allow-Origin: *\r\n
* mg_http_send_redirect(nc, 302, mg_mk_str("/login"), mg_mk_str(NULL));
*/
void
mg_http_send_redirect
(
struct
mg_connection
*
nc
,
int
status_code
,
const
struct
mg_str
location
,
...
...
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