mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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 {
|
private getOperationEndpoint(operation: string, path: string, params?: object): string {
|
||||||
let endpoint = this._url;
|
let endpoint = this._url;
|
||||||
endpoint.pathname = this._opts.path + path;
|
endpoint.pathname = encodeURI(this._opts.path + path);
|
||||||
let searchOpts = Object.assign(
|
let searchOpts = Object.assign(
|
||||||
{ 'op': operation },
|
{ 'op': operation },
|
||||||
// this._opts.user ? { 'user.name': this._opts.user } : {},
|
this._opts.user ? { 'user.name': this._opts.user } : {},
|
||||||
params || {}
|
params || {}
|
||||||
);
|
);
|
||||||
endpoint.search = querystring.stringify(searchOpts);
|
endpoint.search = querystring.stringify(searchOpts);
|
||||||
|
|||||||
Reference in New Issue
Block a user