[postman-to-k6] Check image vs html response

I have a request that goes out and can return either an image OR a login page. I need to check that the response was an image (or not the html page) but it doesn’t appear that I can access contentType.

Does anyone have a way to run this check?

I was able to figure this out on my own by looking at response.headers[‘Content-Type’]

1 Like