forked from loafle/openapi-generator-original
update ts angular 2 samples
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
export class CustomQueryEncoderHelper extends QueryEncoder {
|
||||
encodeKey(k: string): string {
|
||||
k = super.encodeKey(k);
|
||||
return k.replace(/\+/gi, '%2B');
|
||||
return k.replace(/\+/gi, '%2B')
|
||||
.replace(/%5B/, "[").replace(/%5D/, "]")
|
||||
;
|
||||
}
|
||||
encodeValue(v: string): string {
|
||||
v = super.encodeValue(v);
|
||||
|
||||
Reference in New Issue
Block a user