aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/staticresp_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/staticresp_test.go')
-rw-r--r--modules/caddyhttp/staticresp_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/staticresp_test.go b/modules/caddyhttp/staticresp_test.go
index 111e4f374..49adedd0c 100644
--- a/modules/caddyhttp/staticresp_test.go
+++ b/modules/caddyhttp/staticresp_test.go
@@ -29,8 +29,8 @@ func TestStaticResponseHandler(t *testing.T) {
r := fakeRequest()
w := httptest.NewRecorder()
- s := Static{
- StatusCode: strconv.Itoa(http.StatusNotFound),
+ s := StaticResponse{
+ StatusCode: weakString(strconv.Itoa(http.StatusNotFound)),
Headers: http.Header{
"X-Test": []string{"Testing"},
},