diff --git a/handlers_test.go b/handlers_test.go index ed2013d..4c3de8d 100644 --- a/handlers_test.go +++ b/handlers_test.go @@ -92,7 +92,7 @@ func TestIssue43(t *testing.T) { req.Header.Add("Content-Type", form.FormDataContentType()) rr := httptest.NewRecorder() srv.ServeHTTP(rr, req) - checkStatusCode(t, rr, http.StatusOK) + checkStatusCode(t, rr, http.StatusFound) rawURL := strings.SplitN(rr.Body.String(), "\n", 2)[0] pasteURL, err := url.Parse(rawURL) if err != nil {