Skip to content

Commit

Permalink
Use validateResourceType
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Dec 20, 2024
1 parent 26df1d1 commit f4066e7
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 f4066e7

Please sign in to comment.