diff options
author | Steve <nilslice@gmail.com> | 2017-01-26 10:48:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-26 10:48:40 -0800 |
commit | 16a159acec94fd391e840fab061ed08cf894369f (patch) | |
tree | 3418b9e58c9b967171bb5e5138a36cae3384f5c5 /management/editor | |
parent | 3dea30f62a274db3e0cc95441338b2b71a751198 (diff) |
[core] Embedded and implement http.Pusher into http.ResponseWriter+gzip Writer (#47)
* added http Pusher interface to gzip response writer
* implement Pusher on gzipResponseWriter and pass encoding header to pusher options
* providing a generic error view fuction for code that calls a interface method which will have access to the response
* fix []byte -> string type for fmt string
* adding the res, req pattern for method arguments in interfaces and their method calls
* fix for spacing in generic error message
* remove default error views displayed in lifecycle hooks - will rely on custom views or redirects inside hook now that user has ResponseWriter. Otherwise, multiple WriteHeader calls would be warned
* removing WriteHeader calls before return in external handlers
* bump version 0.8.1
Diffstat (limited to 'management/editor')
-rw-r--r-- | management/editor/editor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go index 7bc5f35..39bb25f 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -18,7 +18,7 @@ type Editable interface { type Mergeable interface { // Approve copies an external post to the internal collection and triggers // a re-sort of its content type posts - Approve(req *http.Request) error + Approve(http.ResponseWriter, *http.Request) error } // Editor is a view containing fields to manage content |