File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " sharex-server" ,
3- "version" : " 2.4.4 " ,
3+ "version" : " 2.4.5 " ,
44 "description" : " ShareX image and file hosting using Node.js" ,
55 "main" : " dist/index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -178,12 +178,11 @@ export class ShareXServer {
178178 this . #debug(
179179 `File ${ req . file . filename } uploaded successfully by ${ req . ip } `
180180 ) ;
181- const url = `
182- ${ this . forceHttps ? "https" : req . protocol } ://${ req . host }
183- ${ this . baseUrl }
184- ${ req . file ?. filename }
185- ` ;
186- return res . json ( { url } ) ;
181+ return res . json ( {
182+ url : `${ this . forceHttps ? "https" : req . protocol } ://${ req . host } ${
183+ this . baseUrl
184+ } ${ req . file ?. filename } `,
185+ } ) ;
187186 }
188187
189188 async #ensureSavePath( ) {
You can’t perform that action at this time.
0 commit comments