Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Remove rejectUnauthorized:false from download flags #3086

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ should always follow these steps before opening a new issue.

## Installation

### Problems Downloading node-sass

If node-sass is unable to download the sass binary, please download the correct build
for your node version and platform from the [releases page](https://github.com/sass/node-sass/releases)
and use the [binary configuration parameters](https://github.com/sass/node-sass/blob/master/README.md#binary-configuration-parameters)
to manually use the downloaded binary. This may occur if your ISP/organisation is interfering with https connections.

### 404s

If you see a 404 when trying to install node-sass, this indicates that you're trying
Expand Down
1 change: 0 additions & 1 deletion scripts/util/downloadoptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ var proxy = require('./proxy'),
*/
module.exports = function() {
var options = {
rejectUnauthorized: false,
timeout: 60000,
headers: {
'User-Agent': userAgent(),
Expand Down
3 changes: 0 additions & 3 deletions test/downloadoptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe('util', function() {
describe('without a proxy', function() {
it('should look as we expect', function() {
var expected = {
rejectUnauthorized: false,
timeout: 60000,
headers: {
'User-Agent': ua(),
Expand All @@ -33,7 +32,6 @@ describe('util', function() {

it('should look as we expect', function() {
var expected = {
rejectUnauthorized: false,
proxy: proxy,
timeout: 60000,
headers: {
Expand All @@ -59,7 +57,6 @@ describe('util', function() {

it('should look as we expect', function() {
var expected = {
rejectUnauthorized: false,
timeout: 60000,
headers: {
'User-Agent': ua(),
Expand Down