Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Sep 16, 2024
1 parent e206b1d commit f096409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fixtures/apps/httpclient-allowH2/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const assert = require('assert');

module.exports = app => {
class CustomHttpClient extends app.HttpClient4 {
class CustomHttpClient extends app.HttpClientAllowH2 {
request(url, opt) {
return new Promise(resolve => {
assert(/^http/.test(url), 'url should start with http, but got ' + url);
Expand All @@ -15,5 +15,5 @@ module.exports = app => {
return this.request(url, opt);
}
}
app.HttpClient4 = CustomHttpClient;
app.HttpClientAllowH2 = CustomHttpClient;
};

0 comments on commit f096409

Please sign in to comment.