We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec441b7 commit d816241Copy full SHA for d816241
packages/graphql-playground/src/components/EndpointPopup.tsx
@@ -17,7 +17,7 @@ export interface State {
17
18
export default class EndpointPopup extends React.Component<Props, State> {
19
checkEndpoint = throttle(() => {
20
- if (this.state.endpoint.match(/^http:\/\/\w+(\.\w+)*(:[0-9]+)?\/?.*$/)) {
+ if (this.state.endpoint.match(/^https?:\/\/\w+(\.\w+)*(:[0-9]+)?\/?.*$/)) {
21
fetch(this.state.endpoint, {
22
method: 'post',
23
headers: {
0 commit comments