httpbun icon indicating copy to clipboard operation
httpbun copied to clipboard

✅ Add status tests

Open AlexV525 opened this issue 2 years ago • 2 comments

Run tests through all HTTP status code.

AlexV525 avatar Dec 02 '23 12:12 AlexV525

The service always returns 200 when I run these tests locally...

AlexV525 avatar Dec 02 '23 13:12 AlexV525

https://github.com/golang/go/blob/de5b418bea70aaf27de1f47e9b5813940d1e15a4/src/net/http/server.go#L148-L153

	// The provided code must be a valid HTTP 1xx-5xx status code.
	// Any number of 1xx headers may be written, followed by at most
	// one 2xx-5xx header. 1xx headers are sent immediately, but 2xx-5xx
	// headers may be buffered. Use the Flusher interface to send
	// buffered data. The header map is cleared when 2xx-5xx headers are
	// sent, but not with 1xx headers.

AlexV525 avatar Dec 02 '23 13:12 AlexV525