Skip to content

Commit

Permalink
Use validateResourceType
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Jan 3, 2025
1 parent d50bba4 commit 04b595c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/modules/k6/browser/common/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func NewRequest(ctx context.Context, logger *log.Logger, rp NewRequestParams) (*
requestID: ev.RequestID,
method: ev.Request.Method,
postDataEntries: pd,
resourceType: ev.Type.String(),
resourceType: validateResourceType(logger, ev.Type.String()),
isNavigationRequest: isNavigationRequest,
allowInterception: rp.allowInterception,
interceptionID: rp.interceptionID,
Expand Down

0 comments on commit 04b595c

Please sign in to comment.