mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
write header before body
This produces an http warning that doesn't make the test fail.
(cherry picked from commit d0ccf8e4e4)
This commit is contained in:
parent
1009fa4164
commit
f2d1c3f459
1 changed files with 1 additions and 1 deletions
|
|
@ -61,8 +61,8 @@ func TestDeviceAuthRequest(t *testing.T) {
|
|||
if err := json.NewEncoder(&b).Encode(goodResponse); err != nil {
|
||||
t.Fatalf("unexpected error encoding goodResponse: %v", err)
|
||||
}
|
||||
w.Write(b.Bytes())
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write(b.Bytes())
|
||||
}),
|
||||
)
|
||||
cli := &http.Client{}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue