M
M
MrAlkatras2018-04-19 23:37:31
Node.js
MrAlkatras, 2018-04-19 23:37:31

How to determine that the request is for an html file, and not for a style?

Hello.
Tell me, how best to determine that the request came to the html file, and not to the style?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ihor Gevorkyan, 2018-04-20
@Igor-Maf

request.getHeader('Content-Type');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question