瀏覽代碼

builder-next: use constants for http status codes

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 年之前
父節點
當前提交
984d5bc30c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      builder/builder-next/reqbodyhandler.go

+ 1 - 1
builder/builder-next/reqbodyhandler.go

@@ -57,7 +57,7 @@ func (h *reqBodyHandler) RoundTrip(req *http.Request) (*http.Response, error) {
 
 		resp := &http.Response{
 			Status:        "200 OK",
-			StatusCode:    200,
+			StatusCode:    http.StatusOK,
 			Body:          rc,
 			ContentLength: -1,
 		}