mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
Creating a workspace required `read` on site wide `user`. Only organization permissions should be required.
11 lines
348 B
Go
11 lines
348 B
Go
package httpapi
|
|
|
|
import "net/http"
|
|
|
|
// NoopResponseWriter is a response writer that does nothing.
|
|
type NoopResponseWriter struct{}
|
|
|
|
func (NoopResponseWriter) Header() http.Header { return http.Header{} }
|
|
func (NoopResponseWriter) Write(p []byte) (int, error) { return len(p), nil }
|
|
func (NoopResponseWriter) WriteHeader(int) {}
|