tsfmt - extensions/json/server

This commit is contained in:
Johannes Rieken
2016-10-08 09:32:25 +02:00
parent 7b5a828331
commit 507b551462
7 changed files with 63 additions and 63 deletions

View File

@@ -302,7 +302,7 @@ export default class URI {
// when occurring in paths - otherwise the result
// cannot be parsed back again
let lastIdx = 0;
while(true) {
while (true) {
let idx = path.indexOf(URI._slash, lastIdx);
if (idx === -1) {
parts.push(encoder(path.substring(lastIdx)).replace(/[#?]/, _encode));
@@ -323,7 +323,7 @@ export default class URI {
}
public toJSON(): any {
return <UriState> {
return <UriState>{
scheme: this.scheme,
authority: this.authority,
path: this.path,