Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mongoose
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ganil-acq
GANILinux
linux-service
library
mongoose
Commits
8b12263d
Commit
8b12263d
authored
8 years ago
by
Deomid Ryabkov
Committed by
Cesanta Bot
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix mg_http_send_redirect doc
PUBLISHED_FROM=77cd3df9959b0e3a2550d1581586e69878bbee0d
parent
376d2666
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/c-api/http_server.h/mg_http_send_redirect.md
+2
-6
2 additions, 6 deletions
docs/c-api/http_server.h/mg_http_send_redirect.md
mongoose.h
+2
-6
2 additions, 6 deletions
mongoose.h
with
4 additions
and
12 deletions
docs/c-api/http_server.h/mg_http_send_redirect.md
+
2
−
6
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));
This diff is collapsed.
Click to expand it.
mongoose.h
+
2
−
6
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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment