貢獻變更

取得原始碼
格式化變更
提交前
提交變更
網站
許可證

取得原始碼

GitHub 用於儲存原始碼。可以使用以下指令複製 儲存庫

git clone https://github.com/nginx/nginx.git

格式化變更

變更應根據 nginx 使用的程式碼風格進行格式化。有時沒有明確的規則;在這種情況下,請檢查現有的 nginx 原始碼如何格式化並模仿此風格。如果風格與周圍的程式碼一致,則變更更有可能被接受。

在您的 nginx GitHub 分支中提交變更。請確保指定的作者電子郵件地址和真實姓名正確無誤。

提交訊息應該包含單行摘要,後接空行,然後是詳細描述。建議第一行長度不超過 67 個符號,其餘行長度不超過 76 個符號。可以使用 git show 指令取得最終的提交內容。

commit 8597218f386351d6c6cdced24af6716e19a18fc3
Author: Filipe Da Silva <username@example.com>
Date:   Thu May 9 10:54:28 2013 +0200

    Mail: removed surplus ngx_close_connection() call.

    It is already called for a peer connection a few lines above.

diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c
index 2e9b9f24d..8094bbc5c 100644
--- a/src/mail/ngx_mail_auth_http_module.c
+++ b/src/mail/ngx_mail_auth_http_module.c
@@ -699,7 +699,6 @@ ngx_mail_auth_http_process_headers(ngx_mail_session_t *s,

                     p = ngx_pnalloc(s->connection->pool, ctx->err.len);
                     if (p == NULL) {
-                        ngx_close_connection(ctx->peer.connection);
                         ngx_destroy_pool(ctx->pool);
                         ngx_mail_session_internal_server_error(s);
                         return;

提交前

在提交變更之前,有幾點值得考慮

提交變更

建議的變更應從您的分支以拉取請求的形式提交到nginx 儲存庫

網站

GitHub 用於儲存本網站的原始碼。可以使用以下指令複製儲存庫

git clone https://github.com/nginx/nginx.org.git

文件變更應從您的分支以拉取請求的形式提交。

許可證

提交變更表示授予專案在適當的許可證下使用它的權限。