mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix(Request): convert resourceType to all small-caps (#990)
This patch moves resourceType to be all small-caps. This aligns with our convention that all string constants should be smallcaps. BREAKING CHANGE: this patch changes the constants of the request.resourceType to be all small-caps.
This commit is contained in:
@@ -271,7 +271,7 @@ class Request {
|
||||
});
|
||||
|
||||
this.url = url;
|
||||
this.resourceType = resourceType;
|
||||
this.resourceType = resourceType.toLowerCase();
|
||||
this.method = payload.method;
|
||||
this.postData = payload.postData;
|
||||
this.headers = {};
|
||||
|
||||
Reference in New Issue
Block a user