Skip to content

Commit d816241

Browse files
committed
Fix https in endpoint
1 parent ec441b7 commit d816241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graphql-playground/src/components/EndpointPopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface State {
1717

1818
export default class EndpointPopup extends React.Component<Props, State> {
1919
checkEndpoint = throttle(() => {
20-
if (this.state.endpoint.match(/^http:\/\/\w+(\.\w+)*(:[0-9]+)?\/?.*$/)) {
20+
if (this.state.endpoint.match(/^https?:\/\/\w+(\.\w+)*(:[0-9]+)?\/?.*$/)) {
2121
fetch(this.state.endpoint, {
2222
method: 'post',
2323
headers: {

0 commit comments

Comments
 (0)