feat(backend): moved batch info to query param
This commit is contained in:
parent
8003de2627
commit
54156fc81d
1 changed files with 3 additions and 2 deletions
|
|
@ -287,8 +287,9 @@ func (e *Router) pushMessagesHandlerWeb(w http.ResponseWriter, r *http.Request)
|
|||
bodySize := 0
|
||||
|
||||
// Get debug header with batch info
|
||||
batch := r.Header.Get("X-Openreplay-Batch")
|
||||
r = r.WithContext(context.WithValue(r.Context(), "batch", batch))
|
||||
if batch := r.URL.Query().Get("batch"); batch != "" {
|
||||
r = r.WithContext(context.WithValue(r.Context(), "batch", batch))
|
||||
}
|
||||
|
||||
// Check authorization
|
||||
sessionData, err := e.services.Tokenizer.ParseFromHTTPRequest(r)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue