Просмотр исходного кода

builder-next: use constants for http status codes

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 лет назад
Родитель
Сommit
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,
 		}