summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build_tests.yaml4
-rw-r--r--API-C.md6
-rw-r--r--README.md6
3 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/build_tests.yaml b/.github/workflows/build_tests.yaml
index b8f959e..0e16867 100644
--- a/.github/workflows/build_tests.yaml
+++ b/.github/workflows/build_tests.yaml
@@ -2,7 +2,7 @@ name: Builds
on:
push:
- branches: master
+ branches: main
paths:
- Makefile
- shared.mk
@@ -10,7 +10,7 @@ on:
- 'src/**'
- '.github/workflows/build_tests.yaml'
pull_request:
- branches: master
+ branches: main
paths:
- Makefile
- shared.mk
diff --git a/API-C.md b/API-C.md
index fa04acb..b79ef23 100644
--- a/API-C.md
+++ b/API-C.md
@@ -500,8 +500,8 @@ int luw_request_handler(u8 *addr)
}
```
-That example is taken from the [luw-upload-reflector.c](https://github.com/nginx/unit-wasm/blob/master/examples/c/luw-upload-reflector.c) demo module. For a
-simpler example see [luw-echo-request.c](https://github.com/nginx/unit-wasm/blob/master/examples/c/luw-echo-request.c)
+That example is taken from the [luw-upload-reflector.c](https://github.com/nginx/unit-wasm/blob/main/examples/c/luw-upload-reflector.c) demo module. For a
+simpler example see [luw-echo-request.c](https://github.com/nginx/unit-wasm/blob/main/examples/c/luw-echo-request.c)
### luw_get_http_path
@@ -812,7 +812,7 @@ total_response_sent += write_bytes;
/* ... */
```
-This is taken from the [luw-upload-reflector.c](https://github.com/nginx/unit-wasm/blob/master/examples/c/luw-upload-reflector.c) demo module.
+This is taken from the [luw-upload-reflector.c](https://github.com/nginx/unit-wasm/blob/main/examples/c/luw-upload-reflector.c) demo module.
In this case we build up a request_buffer on each call of
luw_request_handler(), so total_response_sent grows each time by how much data
diff --git a/README.md b/README.md
index c84056a..0bb6814 100644
--- a/README.md
+++ b/README.md
@@ -62,7 +62,7 @@ To do this you can simply take a copy of our echo-request demo in this
repository
```shell
-$ wget -O src/lib.rs https://raw.githubusercontent.com/nginx/unit-wasm/master/examples/rust/echo-request/src/lib.rs
+$ wget -O src/lib.rs https://raw.githubusercontent.com/nginx/unit-wasm/main/examples/rust/echo-request/src/lib.rs
```
6) Build it!
@@ -227,7 +227,7 @@ examples/rust/upload-reflector/target/wasm32-wasi/debug/rust_upload_reflector.wa
```
We won't go into the details of building Unit from source and enabling the
-Unit WebAssembly language module here (see the [HOWTO.md](https://github.com/nginx/unit-wasm/blob/master/HOWTO.md) in the repository root for more details) but will
+Unit WebAssembly language module here (see the [HOWTO.md](https://github.com/nginx/unit-wasm/blob/main/HOWTO.md) in the repository root for more details) but will
instead assume you already have a Unit with the WebAssembly language module
already running.
@@ -388,7 +388,7 @@ Link against libunit-wasm
$ clang ... -o myapp.wasm myapp.c -lunit-wasm
```
-See [API-C.md](https://github.com/nginx/unit-wasm/blob/master/API-C.md) for an
+See [API-C.md](https://github.com/nginx/unit-wasm/blob/main/API-C.md) for an
overview of the API.
## License