Skip to content

Commit 8f6790d

Browse files
committed
doc: fixed the code sample for ngx.redirect() to reflect recent changes there. thanks Zi Lin for the report.
1 parent 4388b1e commit 8f6790d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4276,7 +4276,7 @@ which is equivalent to
42764276

42774277
```lua
42784278

4279-
return ngx.redirect("http://localhost:1984/foo", ngx.HTTP_MOVED_TEMPORARILY)
4279+
return ngx.redirect("/foo", ngx.HTTP_MOVED_TEMPORARILY)
42804280
```
42814281

42824282
Redirecting arbitrary external URLs is also supported, for example:

doc/HttpLuaModule.wiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3557,7 +3557,7 @@ Here is an example assuming the current server name is <code>localhost</code> an
35573557
which is equivalent to
35583558
35593559
<geshi lang="lua">
3560-
return ngx.redirect("http://localhost:1984/foo", ngx.HTTP_MOVED_TEMPORARILY)
3560+
return ngx.redirect("/foo", ngx.HTTP_MOVED_TEMPORARILY)
35613561
</geshi>
35623562
35633563
Redirecting arbitrary external URLs is also supported, for example:

0 commit comments

Comments
 (0)