aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/staticresp_test.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2019-07-11 17:02:57 -0600
committerMatthew Holt <[email protected]>2019-07-11 17:02:57 -0600
commiteb8625f7744ba5e72b51549adc086e45313267cb (patch)
treeac1c77bccd7a1d23cb8e1fd361ed334a3890a80c /modules/caddyhttp/staticresp_test.go
parent4a3a418156e25aae17659142a4bf9259d7702c44 (diff)
downloadcaddy-eb8625f7744ba5e72b51549adc086e45313267cb.tar.gz
caddy-eb8625f7744ba5e72b51549adc086e45313267cb.zip
Add error & subroute handlers; weakString; other minor handler changes
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"},
},