K
K
kapitansen2020-01-17 18:19:33
Nginx
kapitansen, 2020-01-17 18:19:33

Why does nginx return Content-Length: 0 when requesting js files via php cURL?

I wrote a simple php proxy that accesses the server and returns pages using cURL. When the page is loaded, instead of the javascript file, an empty screen with the header Content-Length: 0 comes up. At the same time, when directly accessing the script url through the same proxy - proxy.com/js/jquery.min.js - the script is returned normally.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-01-17
@dimonchik2013

logs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question