mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-20 03:13:31 +01:00
This commit is contained in:
1 parent
93e3eb3a35
commit
ba8b51af58
9 files changed
+454
-35
No files matched your search
@@ -132,7 +132,10 @@ func (r *Router[T]) loadMux(mux *http.ServeMux, group *RouterGroup[T], parents [
|
||||
resp = &ResponseWriter{ResponseWriter: resp}
|
||||
|
||||
// wrap the request body to allow multiple reads
|
||||
req.Body = &RereadableReadCloser{ReadCloser: req.Body}
|
||||
body := &RereadableReadCloser{ReadCloser: req.Body}
|
||||
defer body.Close()
|
||||
|
||||
req.Body = body
|
||||
|
||||
event, cleanupFunc := r.eventFactory(resp, req)
|
||||
|
||||
|
||||
Reference in new issue
Block a user