mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix HDFS paths to be encoded properly (#7896)
This commit is contained in:
@@ -73,10 +73,10 @@ export class WebHDFS {
|
||||
*/
|
||||
private getOperationEndpoint(operation: string, path: string, params?: object): string {
|
||||
let endpoint = this._url;
|
||||
endpoint.pathname = this._opts.path + path;
|
||||
endpoint.pathname = encodeURI(this._opts.path + path);
|
||||
let searchOpts = Object.assign(
|
||||
{ 'op': operation },
|
||||
// this._opts.user ? { 'user.name': this._opts.user } : {},
|
||||
this._opts.user ? { 'user.name': this._opts.user } : {},
|
||||
params || {}
|
||||
);
|
||||
endpoint.search = querystring.stringify(searchOpts);
|
||||
|
||||
Reference in New Issue
Block a user