mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-02 01:46:28 +02:00
api: fix function name + allow unsigned packages
This commit is contained in:
parent
8ad62ec983
commit
b20f853ef1
3 changed files with 21 additions and 19 deletions
|
@ -6,7 +6,7 @@ const fs = require('fs/promises'),
|
|||
|
||||
|
||||
module.exports = {
|
||||
async buffer_from_u_r_l(url){
|
||||
async buffer_from_url(url){
|
||||
if(!(url instanceof URL))
|
||||
url = new URL(url);
|
||||
if(url.protocol == 'file:'){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue