Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Update URLs to HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jul 12, 2019
1 parent f54a43d commit 39cf461
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://travis-ci.org/graphql/express-graphql.svg?branch=master)](https://travis-ci.org/graphql/express-graphql)
[![Coverage Status](https://coveralls.io/repos/graphql/express-graphql/badge.svg?branch=master&service=github)](https://coveralls.io/github/graphql/express-graphql?branch=master)

Create a GraphQL HTTP server with any HTTP web framework that supports connect styled middleware, including [Connect](https://github.com/senchalabs/connect) itself, [Express](http://expressjs.com) and [Restify](http://restify.com/).
Create a GraphQL HTTP server with any HTTP web framework that supports connect styled middleware, including [Connect](https://github.com/senchalabs/connect) itself, [Express](https://expressjs.com) and [Restify](http://restify.com/).

## Installation

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"repository": {
"type": "git",
"url": "http://github.com/graphql/express-graphql.git"
"url": "https://github.com/graphql/express-graphql.git"
},
"keywords": [
"express",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ function graphqlHTTP(options: Options): Middleware {
})
.then(result => {
// Collect and apply any metadata extensions if a function was provided.
// http://graphql.github.io/graphql-spec/#sec-Response-Format
// https://graphql.github.io/graphql-spec/#sec-Response-Format
if (result && extensionsFn) {
return Promise.resolve(
extensionsFn({
Expand Down Expand Up @@ -362,7 +362,7 @@ function graphqlHTTP(options: Options): Middleware {
// error, indicate as such with a generic status code.
// Note: Information about the error itself will still be contained in
// the resulting JSON payload.
// http://graphql.github.io/graphql-spec/#sec-Data
// https://graphql.github.io/graphql-spec/#sec-Data
if (response.statusCode === 200 && result && !result.data) {
response.statusCode = 500;
}
Expand Down

0 comments on commit 39cf461

Please sign in to comment.